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

Make sure shipped wordlist names are valid.

parent 86dc120f
Branches
Tags
No related merge requests found
...@@ -52,6 +52,8 @@ class TestWordlistModule(object): ...@@ -52,6 +52,8 @@ class TestWordlistModule(object):
assert regexp.match("wordlist_foo.txt") is not None assert regexp.match("wordlist_foo.txt") is not None
assert regexp.match("wordlist_foo_bar.asc") is not None assert regexp.match("wordlist_foo_bar.asc") is not None
assert regexp.match("wordlist_name-withdots.txt.asc") is not None assert regexp.match("wordlist_name-withdots.txt.asc") is not None
assert regexp.match("wordlist_en_8k.txt") is not None
assert regexp.match("wordlist_en_orig.asc") is not None
# We can get the internal wordlist name # We can get the internal wordlist name
assert regexp.match("wordlist_foo.txt").groups()[0] == "foo" assert regexp.match("wordlist_foo.txt").groups()[0] == "foo"
assert regexp.match( assert regexp.match(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment