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

Fix test.

We will not accept filedescriptors as `WordList` arguments anymore.
parent dbc0db20
No related branches found
No related tags found
No related merge requests found
......@@ -331,11 +331,8 @@ class TestWordList(object):
# we can tell if a wordlist is not signed
in_file = tmpdir.mkdir("work").join("mywordlist")
in_file.write("a\nb\n")
with open(in_file.strpath, 'r') as fd:
w_list = WordList(fd)
w_list.fd = fd
result = w_list.is_signed()
assert result is False
w_list = WordList(in_file.strpath)
assert w_list.is_signed() is False
def test_refine_entry_strips(self, wordlist):
# we strip() entries
......
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