Mercurial > p > roundup > code
diff roundup/web/router.py @ 4918:35dc9191394d routing
routing: Use Router in cgi.client.main
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Tue, 12 Aug 2014 00:36:15 +0300 |
| parents | e5f90a69f660 |
| children | 6ee1844019d5 |
line wrap: on
line diff
--- a/roundup/web/router.py Mon Aug 11 18:31:49 2014 +0300 +++ b/roundup/web/router.py Tue Aug 12 00:36:15 2014 +0300 @@ -23,7 +23,7 @@ ExampleFileHandler = NamedObject('ExampleFileHandler') -EXAMPLE_URLMAP = ( +EXAMPLE_URL_MAP = ( 'static/(.*)', ExampleFileHandler, 'index', ExampleHandler ) @@ -66,7 +66,7 @@ import unittest class test_Router(unittest.TestCase): def test_example_routes(self): - router = Router(EXAMPLE_URLMAP) + router = Router(EXAMPLE_URL_MAP) self.assertEquals(router.get_handler(''), (None, ())) handler, params = router.get_handler('/index') self.assertEquals(handler, ExampleHandler)
