def METHOD_NAME(self):
    mock_response = create_failed_http_response()
    with mock.patch('requests.get', return_value=(mock_response)):
        response = ping_aladdin_service()
        self.assertEqual(500, response.status_code)