git.99rst.org
/
redacted-XKCD-password-generator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4ea8b5f
)
update tests as needed (wordlist size, new parameter names)
author
Steven Tobin
<steventtobin (at) gmail.com>
Thu, 1 Oct 2015 09:00:02 +0000
(10:00 +0100)
committer
Steven Tobin
<steventtobin (at) gmail.com>
Thu, 1 Oct 2015 09:00:02 +0000
(10:00 +0100)
tests/xkcdp_tests.py
patch
|
blob
|
history
diff --git
a/tests/xkcdp_tests.py
b/tests/xkcdp_tests.py
index 1cc67a07a9740d34a80bc4ffd27d26797b5ad7fe..0a68da2f7114fe1ca7cc4d78d0c4c0edcfb2218b 100644
(file)
--- a/
tests/xkcdp_tests.py
+++ b/
tests/xkcdp_tests.py
@@
-17,7
+17,7
@@
class XkcdPasswordTests(unittest.TestCase):
valid_chars='[a-z]')
def test_loadwordfile(self):
- self.assertEquals(len(self.wordlist_full),
19493
)
+ self.assertEquals(len(self.wordlist_full),
29612
)
def test_regex(self):
self.assertNotIn("__$$$__", self.wordlist_small)
@@
-40,7
+40,7
@@
class XkcdPasswordTests(unittest.TestCase):
tdelim = "_"
result = xkcd_password.generate_xkcdpassword(
self.wordlist_small,
- delim=tdelim)
+ delim
iter
=tdelim)
self.assertIsNotNone(re.match('([a-z]+(_|$))+', result))
git clone https://git.99rst.org/PROJECT