Index: dashboard/dashboard/services/request_test.py |
diff --git a/dashboard/dashboard/services/request_test.py b/dashboard/dashboard/services/request_test.py |
index cf13edeb32a431152db03d80f8177614513ef29c..b58adf297e5b3f131260eadec3346340f5789153 100644 |
--- a/dashboard/dashboard/services/request_test.py |
+++ b/dashboard/dashboard/services/request_test.py |
@@ -36,6 +36,12 @@ class SuccessTest(_RequestTest): |
self._request.assert_called_once_with('https://example.com', method='GET') |
self.assertEqual(response, 'response') |
+ def testRequestJsonWithPrefix(self): |
+ self._request.return_value = ({'status': '200'}, ')]}\'\n"response"') |
+ response = request.RequestJson('https://example.com') |
+ self._request.assert_called_once_with('https://example.com', method='GET') |
+ self.assertEqual(response, 'response') |
+ |
def testRequestWithBodyAndParameters(self): |
self._request.return_value = ({'status': '200'}, 'response') |
response = request.Request('https://example.com', 'POST', body='a string', |