From 866dd4278f31fdf097f4ff4e97fe26b17ae5ee7a Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Mon, 13 Feb 2017 13:10:40 +0100 Subject: [PATCH] Fix the test for invalid metric --- tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.py b/tests/tests.py index f5521da..660836a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -87,7 +87,7 @@ def testAuthRepWithInvalidMetric(self): authrep = self.ThreeScaleAuthRep(self.provider_key, self.app_id, self.app_key) self.assertFalse(authrep.authrep({"invalid_metric":1})) - self.assertEquals(403, authrep.error_code) + self.assertEquals(404, authrep.error_code) self.assertEquals("metric \"invalid_metric\" is invalid", authrep.build_response().get_reason())