# HG changeset patch # User Brian Neal # Date 1385865832 21600 # Node ID cb053e95105e2192123e99698ca64efe20042305 # Parent 46e1c1e6b56404571c362ab7c66332a6f3d7b06e Correct bug in Purple97 test. diff -r 46e1c1e6b564 -r cb053e95105e purple/tests/test_machine.py --- 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):