Fix some other tests broken by the new HttpError implementation
diff --git a/tests/test_json_model.py b/tests/test_json_model.py
index 5ce9b63..c9c9b7d 100644
--- a/tests/test_json_model.py
+++ b/tests/test_json_model.py
@@ -114,7 +114,7 @@
model = JsonModel()
resp = httplib2.Response({'status': '401'})
resp.reason = 'Unauthorized'
- content = '{"error": "not authorized"}'
+ content = '{"error": {"message": "not authorized"}}'
try:
content = model.response(resp, content)
diff --git a/tests/test_mocks.py b/tests/test_mocks.py
index 3216a06..91450ee 100644
--- a/tests/test_mocks.py
+++ b/tests/test_mocks.py
@@ -61,7 +61,7 @@
activity = buzz.activities().list(scope='@self', userId='@me').execute()
self.fail('An exception should have been thrown')
except HttpError, e:
- self.assertEqual('500 Server Error', e.detail)
+ self.assertEqual('{}', e.content)
self.assertEqual(500, e.resp.status)
self.assertEqual('Server Error', e.resp.reason)