diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-05-30 16:44:14 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-05-30 16:44:14 +0300 |
commit | 7ad4a7670470872d78d2f552efa346a66ed4845e (patch) | |
tree | 774ef06fa90b8aa6fd2a8dd5c7b90bc150bc1c96 /test | |
parent | 6a775f58af430bd2e1f41556e9bb28b089a5e068 (diff) | |
download | unit-7ad4a7670470872d78d2f552efa346a66ed4845e.tar.gz unit-7ad4a7670470872d78d2f552efa346a66ed4845e.tar.bz2 |
Tests: configure arrays with PUT tests.
Diffstat (limited to '')
-rw-r--r-- | test/test_routing.py | 22 |
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 |