def test_resource_not_found_on_delete(self): resource_id = self.create_resource() self.delete_resource(resource_id) url = self.generate_url(resource_id) error = e.not_found(resource=self.resource) response = client.delete(url) response.assert_match(404, error)
def delete_resource(self, resource_id): url = self.generate_url(resource_id) client.delete(url)