def METHOD_NAME(self, mock_get_store_model_policies):
    mock_get_store_model_policies.side_effect = StoreApiResponseErrorList(
        "An error occurred", 500, [{"message": "An error occurred"}]
    )
    response = self.client.get("/admin/store/1/models/Model1/policies")
    data = response.json
    self.assertEqual(response.status_code, 500)
    self.assertFalse(data["success"])
    self.assertEqual(data["message"], "An error occurred")