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

Rename 'en' wordlist to 'en_8k'.

We will certainly provide other english lists as well. Therefore
we need something for distinction.
parent 1e20a8c4
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,7 @@ def get_passphrase(options=None):
if options is None:
options = handle_options(args=[])
if options.infile is None:
options.infile = open(get_wordlist_path("en"), 'r')
options.infile = open(get_wordlist_path("en_8k"), 'r')
word_list = get_wordlist(options.infile)
rnd_source = get_random_sources()[options.randomsource]
rnd = rnd_source(options)
......
......@@ -37,9 +37,9 @@ def argv_handler(request):
class Test_GetWordList(object):
def test_get_wordlist_en(self):
# we can get a list of words out of english wordlist.
en_src = os.path.join(WORDLISTS_DIR, 'wordlist_en.txt')
def test_get_wordlist_en_8k(self):
# we can get a list of words out of english 8k wordlist.
en_src = os.path.join(WORDLISTS_DIR, 'wordlist_en_8k.txt')
with open(en_src, 'r') as fd:
en_result = get_wordlist(fd)
assert en_result[0] == 'a'
......@@ -100,7 +100,7 @@ class TestDicewareModule(object):
def test_get_wordlist_path(self):
# we can get valid wordlist paths
assert os.path.exists(get_wordlist_path('en'))
assert os.path.exists(get_wordlist_path('en_8k'))
assert not os.path.exists(get_wordlist_path('zz'))
def test_get_wordlist_path_requires_ascii(self):
......
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