def METHOD_NAME(self):
    del self.data["creator"]
    serializer = api.PushNotificationRegistrationSerializer(
        context=self.context, data=self.data
    )
    assert serializer.is_valid()
    self.assertEqual(serializer.errors, {})
    obj = serializer.save()
    self.assertEqual(obj.creator, self.user)