|
@@ -124,6 +124,15 @@ class _TestCases(unittest.TestCase): |
|
|
r = self.requests.put('/store', data=persona.get_identity().encode()) |
|
|
r = self.requests.put('/store', data=persona.get_identity().encode()) |
|
|
self.assertEqual(r.status_code, 201) |
|
|
self.assertEqual(r.status_code, 201) |
|
|
|
|
|
|
|
|
|
|
|
# that an object with a bad signature |
|
|
|
|
|
badsigobj = persona.get_identity().new_version() |
|
|
|
|
|
|
|
|
|
|
|
# when stored |
|
|
|
|
|
r = self.requests.put('/store', data=badsigobj.encode()) |
|
|
|
|
|
|
|
|
|
|
|
# is rejected |
|
|
|
|
|
self.assertEqual(r.status_code, 401) |
|
|
|
|
|
|
|
|
# that when stored |
|
|
# that when stored |
|
|
self.medaserver.store() |
|
|
self.medaserver.store() |
|
|
|
|
|
|
|
|