Commits

Doug Hellmann committed acfb968

test invalid float values

Comments (0)

Files changed (1)

wsme/tests/test_types.py

             assert False, "No ValueError raised"
         except ValueError:
             pass
+        try:
+            types.validate_value(float, 'not-a-float')
+            assert False, "No ValueError raised"
+        except ValueError:
+            pass
 
     def test_validate_int(self):
         self.assertEqual(types.validate_value(int, 1), 1)