예제 #1
0
 def test_coerce_from_list_of_dicts(self):
     coerced = DataStoreListField.coerce([{'id': 6}, {'id': 7}, {'id': 8}])
     self.assertEqual(coerced, [6, 7, 8])
예제 #2
0
 def test_coerce_from_list_of_dicts(self):
     coerced = DataStoreListField.coerce([{'id': 6}, {'id': 7}, {'id': 8}])
     self.assertEqual(coerced, [6, 7, 8])
예제 #3
0
 def test_coerce(self):
     coerced = DataStoreListField.coerce([1, 2, 3, 4, 5])
     self.assertEqual(coerced, [1, 2, 3, 4, 5])
예제 #4
0
 def test_coerce(self):
     coerced = DataStoreListField.coerce([1, 2, 3, 4, 5])
     self.assertEqual(coerced, [1, 2, 3, 4, 5])