diff tests/test_conformity.py @ 188:100697f7c195

fix errors in testing and make exception a better marker
author Jeff Hammel <k0scist@gmail.com>
date Fri, 21 Jul 2017 12:58:40 -0700
parents c2f545f32025
children
line wrap: on
line diff
--- a/tests/test_conformity.py	Fri Jul 21 12:50:17 2017 -0700
+++ b/tests/test_conformity.py	Fri Jul 21 12:58:40 2017 -0700
@@ -13,24 +13,24 @@
     def test_equal_lengths(self):
 
         data = [[1,2,3],
-                [4,5,6]
+                [4,5,6],
                 [7,8,9]]
 
         assert conformity.ensure_row_length(data) == 3
 
     def test_nonequal_lengths(self):
         data = [[1,2,3],
-                [4,5,6]
+                [4,5,6],
                 [7,8,9, 10]  # oops!
                 ]
 
         e = None
         try:
             conformity.ensure_row_length(data)
-        except conformity.NonformantRowLengths as e:
+        except conformity.NonConformantRowLengths as e:
             pass
         assert e is not None
-        assert isinstance(e, NonConformantRowLengths)
+        assert isinstance(e, conformity.NonConformantRowLengths)
 
 if __name__ == '__main__':
     unittest.main()