Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
6008858a
Commit
6008858a
authored
Jul 23, 2018
by
Matt Traudt
Browse files
Make two tests actually test something
parent
e00e531f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/util/test_state.py
View file @
6008858a
...
...
@@ -68,7 +68,7 @@ def test_state_del(tmpdir):
attempt_keys
=
(
15983
,
None
,
True
,
-
1.2
,
[],
{},
set
())
for
key
in
attempt_keys
:
try
:
del
state
[
False
]
del
state
[
key
]
except
TypeError
:
pass
else
:
...
...
@@ -116,5 +116,4 @@ def test_state_iter(tmpdir):
d
=
{
'a'
:
1
,
'b'
:
2
,
'c'
:
3
,
'd'
:
4
}
for
key
in
d
:
state
[
key
]
=
d
[
key
]
for
key
in
state
:
pass
assert
set
([
key
for
key
in
state
])
==
set
(
d
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment