

def test_empty_latitude(self):
    now = datetime.datetime.now()
    point = {
        'latitude': 49.8782482189424,
        'longitude': '',
    }
    serializer = PointSerializer(data={
        'created': now,
        'point': point,
    })
    self.assertFalse(serializer.is_valid())

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