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:
71163fb
)
remove usage of deprecated assertEquals
author
Steven Tobin
<redacted>
Mon, 1 Apr 2024 13:48:51 +0000
(14:48 +0100)
committer
Steven Tobin
<redacted>
Mon, 1 Apr 2024 13:48:51 +0000
(14:48 +0100)
tests/test_xkcdpass.py
patch
|
blob
|
history
diff --git
a/tests/test_xkcdpass.py
b/tests/test_xkcdpass.py
index 505bc42de48e084931131d00e691215594aad6dd..f0185b3817246d4f52291ce138f067cb54d5d6b5 100644
(file)
--- a/
tests/test_xkcdpass.py
+++ b/
tests/test_xkcdpass.py
@@
-58,7
+58,7
@@
class XkcdPasswordTests(unittest.TestCase):
wordlist, numwords=numwords, random_delimiters=True
)
# check that the result is the right length
- self.assertEqual
s
(len(result), numwords * wordlength + (numwords - 1))
+ self.assertEqual(len(result), numwords * wordlength + (numwords - 1))
# check we have the right number of delimiters
self.assertEqual(
len([x for x in result if x in set(xkcd_password.DEFAULT_DELIMITERS)]),
git clone https://git.99rst.org/PROJECT