From: Steven Tobin Date: Thu, 13 Jun 2013 10:37:56 +0000 (+0100) Subject: moved test wordfile to tests dir X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d7cfa1dde98f3d07002ff22b0d61b1fe96087100;p=redacted-XKCD-password-generator.git moved test wordfile to tests dir --- diff --git a/test_list.txt b/tests/test_list.txt similarity index 100% rename from test_list.txt rename to tests/test_list.txt diff --git a/tests/xkcdp_tests.py b/tests/xkcdp_tests.py index ea1c9ef..c6b1600 100644 --- a/tests/xkcdp_tests.py +++ b/tests/xkcdp_tests.py @@ -10,7 +10,7 @@ class XkcdPasswordTests(unittest.TestCase): min_length=5, max_length=8,) self.wordlist_small = xkcd_password.generate_wordlist( - wordfile='test_list.txt', + wordfile='tests/test_list.txt', valid_chars='[a-z]') def test_loadwordfile(self): @@ -32,6 +32,7 @@ class XkcdPasswordTests(unittest.TestCase): ["python", "xkcd_password.py", "-w", "3esl.txt", "-c", str(count)]) self.assertTrue(result.count("\n"), count) + if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase(XkcdPasswordTests) unittest.TextTestRunner(verbosity=2).run(suite)