moved test wordfile to tests dir
authorSteven Tobin <steventtobin (at) gmail.com>
Thu, 13 Jun 2013 10:37:56 +0000 (11:37 +0100)
committerSteven Tobin <steventtobin (at) gmail.com>
Thu, 13 Jun 2013 10:37:56 +0000 (11:37 +0100)
tests/test_list.txt [moved from test_list.txt with 100% similarity]
tests/xkcdp_tests.py

similarity index 100%
rename from test_list.txt
rename to tests/test_list.txt
index ea1c9efd9d13ce03d25d26a2f70a635eb18abc5e..c6b160088720d97836e56a79e0e48a9df51e39b5 100644 (file)
@@ -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)
git clone https://git.99rst.org/PROJECT