예제 #1
0
 def test_coerce_from_string(self):
     coerced = IntegerField.coerce('1')
     self.assertEqual(coerced, 1)
예제 #2
0
 def test_coerce_from_string(self):
     coerced = IntegerField.coerce('1')
     self.assertEqual(coerced, 1)
예제 #3
0
 def test_coerce(self):
     coerced = IntegerField.coerce(1)
     self.assertEqual(coerced, 1)
예제 #4
0
 def test_coerce(self):
     coerced = IntegerField.coerce(1)
     self.assertEqual(coerced, 1)