diff --git a/test/test_routing.py b/test/test_routing.py index 01a6ba4..a2734c0 100644 --- a/test/test_routing.py +++ b/test/test_routing.py @@ -6,10 +6,9 @@ :Updater: $Author$ ''' import milla.dispatch.routing +import milla.controllers import nose.tools -def fake_controller(): - pass def test_static(): '''Ensure the dispatcher can resolve a static path @@ -109,9 +108,9 @@ def test_string_controller(): ''' router = milla.dispatch.routing.Router() - router.add_route('/test', 'milla.tests.test_routing:fake_controller') + router.add_route('/test', 'milla.controllers:Controller') func = router.resolve('/test') - assert func.func == fake_controller + assert func.func == milla.controllers.Controller def test_trailing_slash_redir(): '''Paths that match except the trailing slash return a HTTP redirect