def test_coerce_from_string(self): coerced = IntegerField.coerce('1') self.assertEqual(coerced, 1)
def test_coerce(self): coerced = IntegerField.coerce(1) self.assertEqual(coerced, 1)