From: Fabian Affolter Date: Fri, 3 Nov 2017 22:44:36 +0000 (+0100) Subject: Allow discover X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=06589d1a339bae8bf193111cfdaa7c635fba6d1b;p=redacted-XKCD-password-generator.git Allow discover --- diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/xkcdp_tests.py b/tests/test_xkcdpass.py similarity index 91% rename from tests/xkcdp_tests.py rename to tests/test_xkcdpass.py index 6465be2..941c84b 100644 --- a/tests/xkcdp_tests.py +++ b/tests/test_xkcdpass.py @@ -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