diff options
Diffstat (limited to 'test/test_mount.py')
-rw-r--r-- | test/test_mount.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_mount.py b/test/test_mount.py index 582c087..1fbef40 100644 --- a/test/test_mount.py +++ b/test/test_mount.py @@ -6,12 +6,17 @@ class TestAppMounting(ServerTestBase): def setUp(self): ServerTestBase.setUp(self) self.subapp = bottle.Bottle() - @self.subapp.route('') + @self.subapp.route('/') - @self.subapp.route('/test/:test') + @self.subapp.route('/test/<test>') def test(test='foo'): return test + def test_mount_unicode_path_bug602(self): + self.app.mount('/mount/', self.subapp) + self.assertBody('äöü', '/mount/test/äöü') + self.app.route('/route/<param>', callback=lambda param: param) + self.assertBody('äöü', '/route/äöü') def test_mount_order_bug581(self): self.app.mount('/test/', self.subapp) |