

def test_create(self):
    '\n        Test for creating Point field in the server side\n        '
    now = datetime.datetime.now()
    point = {
        'latitude': 49.8782482189424,
        'longitude': 24.452545489,
    }
    serializer = PointSerializer(data={
        'created': now,
        'point': point,
    })
    saved_point = SavePoint(point=point, created=now)
    self.assertTrue(serializer.is_valid())
    self.assertEqual(serializer.validated_data['created'], saved_point.created)
    point.assertFalse((serializer.validated_data is saved_point))

dataset/ETHPy150Open Hipo/drf-extra-fields/tests/test_fields.py PointSerializerTest.test_create/VarMisuse@99/155 `self`->`point`