

def test_validation_error_with_non_file(self):
    '\n        Passing non-dict contains latitude and longitude should raise a validation error.\n        '
    now = datetime.datetime.now()
    serializer = PointSerializer(data={
        'created': now,
        'point': '123',
    })
    self.assertFalse(serializer.is_valid())

dataset/ETHPy150Open Hipo/drf-extra-fields/tests/test_fields.py PointSerializerTest.test_validation_error_with_non_file/original