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

Test wordlist_fd parameter in get_passphrase().

parent 8435639b
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,12 @@ class TestDicewareModule(object):
phrase = get_passphrase(delimiter=" ")
assert " " in phrase
def test_get_passphrase_wordlist_fd(self):
# we can pass in an own wordlist
wordlist_fd = StringIO("word1\n")
phrase = get_passphrase(wordlist_fd=wordlist_fd)
assert "Word1" in phrase
def test_print_version(self, capsys):
# we can print version infos
print_version()
......
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