'Helper method for sending a patch to the server, defaulting to application/merge-patch+json content_type.
Verifies the expected status and returns the response.'

def send_patch(self, client, json_data, content_type='application/merge-patch+json', expected_status=200):

    response = client.patch(self.url, data=json.dumps(json_data), content_type=content_type)
    self.assertEqual(expected_status, response.status_code)
    return response
