From 7ad4a7670470872d78d2f552efa346a66ed4845e Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Thu, 30 May 2019 16:44:14 +0300 Subject: [PATCH] Tests: configure arrays with PUT tests. --- test/test_routing.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/test_routing.py b/test/test_routing.py index 4989a63e..6c0afe9a 100644 --- a/test/test_routing.py +++ b/test/test_routing.py @@ -1148,6 +1148,28 @@ class TestRouting(TestApplicationProto): self.get()['status'], 200, 'routes redefine request 6' ) + self.assertIn( + 'error', + self.conf( + {"action": {"pass": "applications/empty"}}, 'routes/main/2' + ), + 'routes redefine 7', + ) + self.assertIn( + 'success', + self.conf( + {"action": {"pass": "applications/empty"}}, 'routes/main/1' + ), + 'routes redefine 8', + ) + + self.assertEqual( + len(self.conf_get('routes/main')), 2, 'routes redefine conf 8' + ) + self.assertEqual( + self.get()['status'], 200, 'routes redefine request 8' + ) + @unittest.expectedFailure def test_routes_edit(self): self.skip_sanitizer = True