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