def METHOD_NAME(self):
    get_function_endpoint = reverse(
        self.endpoint, args=[self.organization.slug, "invalid-slug"]
    )
    get_response = self.client.get(get_function_endpoint)
    assert get_response.status_code == 404