def METHOD_NAME(self):
    """Test get_app API endpoint with invalid app id."""
    response = self.client.get(reverse("api:get_app", kwargs={"app": "foo-bar"}))
    self.assertEqual(response.status_code, 200)
    self.assertIsInstance(response, JsonResponse)
    json = response.json()
    self.assertIn("error", json)
    self.assertEqual('Could not find app "foo-bar".', json["error"])