def test_update(self, data=None, results=None, use_patch=None, **kwargs):

        response = self.get_update_response(data, results, use_patch, **kwargs)

        self.assertEqual(response.status_code, status.HTTP_200_OK, response.data)

        # getting a fresh copy of the object from DB
        updated = self.object.__class__.objects.get(**{self.lookup_field: self.object_id})
        # Sanity check:
        # check that the copy in the database was updated as expected.
        self._update_check_db(updated, data, results)

        return response, updated
Send request to the update view endpoint, verify and return the response.
dataset/ETHPy150Open ydaniv/django-rest-assured/rest_assured/testcases.py/UpdateAPITestCaseMixin.test_update