def test_update(self): request = self.create_test_request() parsed_request = StoredRequest.parse_request(request) stored_request = StoredRequest.objects.create(**parsed_request) upd_request = self.create_test_request('/someurl') parsed_request = StoredRequest.parse_request(upd_request) self.assert_update(stored_request, **parsed_request)
def test_delete(self): request = self.create_test_request() parsed_request = StoredRequest.parse_request(request) stored_request = StoredRequest.objects.create(**parsed_request) self.assert_delete(stored_request)
def test_create(self): request = self.create_test_request() self.assert_create(StoredRequest, **StoredRequest.parse_request(request))