test_variables.py (1607:de4373a63715) test_variables.py (1654:fc7d0578e124)
1from unit.applications.proto import TestApplicationProto
2
3
4class TestVariables(TestApplicationProto):
5 prerequisites = {}
6
7 def setup_method(self):
1from unit.applications.proto import TestApplicationProto
2
3
4class TestVariables(TestApplicationProto):
5 prerequisites = {}
6
7 def setup_method(self):
8 super().setup_method()
9
10 assert 'success' in self.conf(
11 {
12 "listeners": {"*:7080": {"pass": "routes/$method"}},
13 "routes": {
14 "GET": [{"action": {"return": 201}}],
15 "POST": [{"action": {"return": 202}}],
16 "3": [{"action": {"return": 203}}],
17 "4*": [{"action": {"return": 204}}],

--- 108 unchanged lines hidden ---
8 assert 'success' in self.conf(
9 {
10 "listeners": {"*:7080": {"pass": "routes/$method"}},
11 "routes": {
12 "GET": [{"action": {"return": 201}}],
13 "POST": [{"action": {"return": 202}}],
14 "3": [{"action": {"return": 203}}],
15 "4*": [{"action": {"return": 204}}],

--- 108 unchanged lines hidden ---