Add tests for admins unsubscribing principals.

(imported from commit a2599ddc55ccddde3d39cb125bb1d5079772c652)
This commit is contained in:
Jessica McKellar
2014-01-30 16:50:51 -05:00
parent ec88b3abaf
commit 9b1090506e
2 changed files with 118 additions and 0 deletions

View File

@@ -289,6 +289,7 @@ class AuthedTestCase(TestCase):
# We have a msg key for consistency with errors, but it typically has an
# empty value.
self.assertIn("msg", json)
return json
def get_json_error(self, result):
self.assertEqual(result.status_code, 400)