summaryrefslogtreecommitdiffhomepage
path: root/test/test_routing.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_routing.py22
1 files changed, 22 insertions, 0 deletions
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