Allow discover
authorFabian Affolter <redacted>
Fri, 3 Nov 2017 22:44:36 +0000 (23:44 +0100)
committerFabian Affolter <redacted>
Fri, 3 Nov 2017 22:44:36 +0000 (23:44 +0100)
tests/__init__.py [new file with mode: 0644]
tests/test_xkcdpass.py [moved from tests/xkcdp_tests.py with 91% similarity]

diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 91%
rename from tests/xkcdp_tests.py
rename to tests/test_xkcdpass.py
index 6465be26ff3e736ce668e6df3eb234b413c6857f..941c84bab0addad92fad498ff8072af904e04882 100644 (file)
@@ -17,7 +17,7 @@ class XkcdPasswordTests(unittest.TestCase):
             valid_chars='[a-z]')
 
     def test_loadwordfile(self):
-        self.assertEquals(len(self.wordlist_full), 29611)
+        self.assertEqual(len(self.wordlist_full), 29611)
 
     def test_regex(self):
         self.assertNotIn("__$$$__", self.wordlist_small)
@@ -27,7 +27,7 @@ class XkcdPasswordTests(unittest.TestCase):
         result = xkcd_password.generate_xkcdpassword(
             self.wordlist_small,
             acrostic=word)
-        self.assertEquals("".join(map(lambda x: x[0], result.split())), word)
+        self.assertEqual("".join(map(lambda x: x[0], result.split())), word)
 
     def test_commandlineCount(self):
         count = 5
git clone https://git.99rst.org/PROJECT