From 42eb9220d95ee655f16efbd93c4fada788a8534d Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 9 Sep 2019 11:40:41 -0700 Subject: [PATCH] before this test, verify was unneeded.. --- ui/server.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/server.py b/ui/server.py index 29479d9..85063cb 100644 --- a/ui/server.py +++ b/ui/server.py @@ -124,6 +124,15 @@ class _TestCases(unittest.TestCase): r = self.requests.put('/store', data=persona.get_identity().encode()) 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 self.medaserver.store()