test: Fix tests broken by move

master
Dustin C. Hatch 2015-02-19 20:29:01 -06:00
parent 7cfb10066e
commit 922778ee4c
1 changed files with 3 additions and 4 deletions

View File

@ -6,10 +6,9 @@
:Updater: $Author$ :Updater: $Author$
''' '''
import milla.dispatch.routing import milla.dispatch.routing
import milla.controllers
import nose.tools import nose.tools
def fake_controller():
pass
def test_static(): def test_static():
'''Ensure the dispatcher can resolve a static path '''Ensure the dispatcher can resolve a static path
@ -109,9 +108,9 @@ def test_string_controller():
''' '''
router = milla.dispatch.routing.Router() 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') func = router.resolve('/test')
assert func.func == fake_controller assert func.func == milla.controllers.Controller
def test_trailing_slash_redir(): def test_trailing_slash_redir():
'''Paths that match except the trailing slash return a HTTP redirect '''Paths that match except the trailing slash return a HTTP redirect