Skip to content
Snippets Groups Projects
Commit d2ca804a authored by ulif's avatar ulif
Browse files

Fix wordlist test.

Do expect file paths instead of already opened filedescriptors.
parent ad5c04f2
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,7 @@ class TestHandleOptions(object):
with open('mywords', 'w') as fd:
fd.write('one\ntwo\n')
options = handle_options(['mywords', ])
assert options.infile is not None
assert options.infile.read() == 'one\ntwo\n'
options.infile.close()
assert options.infile == 'mywords'
def test_handle_options_version(self):
# we can ask for version infos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment