forked from pool/python-xkcdpass
methods. - Switch to autosetup and pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xkcdpass?expand=0&rev=22
14 lines
720 B
Diff
14 lines
720 B
Diff
Index: xkcdpass-1.19.8/tests/test_xkcdpass.py
|
|
===================================================================
|
|
--- xkcdpass-1.19.8.orig/tests/test_xkcdpass.py
|
|
+++ xkcdpass-1.19.8/tests/test_xkcdpass.py
|
|
@@ -58,7 +58,7 @@ class XkcdPasswordTests(unittest.TestCas
|
|
wordlist, numwords=numwords, random_delimiters=True
|
|
)
|
|
# check that the result is the right length
|
|
- self.assertEquals(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)]),
|