File fix-test-assertion-methods.patch of Package python-xkcdpass
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)]),