blob: 223e6ed9e8120a1b32b7274f31c2e45d2472e44e [file] [log] [blame]
from allura.tests import TestController
app = None
class TestDispatch(TestController):
validate_skip = True
def test_dispatch(self):
r = self.app.get('/dispatch/foo/')
assert r.body == 'index foo', r
r = self.app.get('/dispatch/foo/bar')
assert r.body == "default(foo)(('bar',))", r
self.app.get('/not_found', status=404)
self.app.get('/dispatch/', status=404)
# self.app.get('/hello/foo/bar', status=404)