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