コード例 #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])