Deleted
Added
test_routing.py (1434:7e6a2071f723) | test_routing.py (1453:71af60a59338) |
---|---|
1import unittest 2from unit.applications.proto import TestApplicationProto 3 4 5class TestRouting(TestApplicationProto): 6 prerequisites = {'modules': ['python']} 7 8 def setUp(self): --- 591 unchanged lines hidden (view full) --- 600 ) 601 602 self.assertEqual(self.get()['status'], 404, 'routes edit GET 5') 603 self.assertEqual(self.post()['status'], 404, 'routes edit POST 5') 604 605 self.assertIn( 606 'success', 607 self.conf_post( | 1import unittest 2from unit.applications.proto import TestApplicationProto 3 4 5class TestRouting(TestApplicationProto): 6 prerequisites = {'modules': ['python']} 7 8 def setUp(self): --- 591 unchanged lines hidden (view full) --- 600 ) 601 602 self.assertEqual(self.get()['status'], 404, 'routes edit GET 5') 603 self.assertEqual(self.post()['status'], 404, 'routes edit POST 5') 604 605 self.assertIn( 606 'success', 607 self.conf_post( |
608 {"match": {"method": "POST"}, "action": {"return": 200},}, | 608 {"match": {"method": "POST"}, "action": {"return": 200}}, |
609 'routes', 610 ), 611 'routes edit configure 6', 612 ) 613 614 self.assertEqual(self.get()['status'], 404, 'routes edit GET 6') 615 self.assertEqual(self.post()['status'], 200, 'routes edit POST 6') 616 --- 1136 unchanged lines hidden --- | 609 'routes', 610 ), 611 'routes edit configure 6', 612 ) 613 614 self.assertEqual(self.get()['status'], 404, 'routes edit GET 6') 615 self.assertEqual(self.post()['status'], 200, 'routes edit POST 6') 616 --- 1136 unchanged lines hidden --- |