changeset 10:cb053e95105e

Correct bug in Purple97 test.
author Brian Neal <bgneal@gmail.com>
date Sat, 30 Nov 2013 20:43:52 -0600
parents 46e1c1e6b564
children d2c21b6c5bbc
files purple/tests/test_machine.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/purple/tests/test_machine.py	Wed Nov 27 19:15:17 2013 -0600
+++ b/purple/tests/test_machine.py	Sat Nov 30 20:43:52 2013 -0600
@@ -51,19 +51,19 @@
     def test_construct_bad_alphabet(self):
 
         alpha = ''
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = '1'
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = '!' * 26
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = string.ascii_uppercase[3:]
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = string.ascii_uppercase + string.ascii_uppercase[4:10]
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = string.ascii_uppercase[:13] + string.ascii_uppercase[:13]
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
         alpha = 'M' * 26
-        self.assertRaises(Purple97Error, Purple97, alpha)
+        self.assertRaises(Purple97Error, Purple97, alphabet=alpha)
 
     def test_from_key_sheet(self):