def test_resolve(self): func, args, kwargs = urlresolvers.resolve('/') eq_(func.__name__, 'home') # With a request with locale and app prefixes, it still works. Client().get('/') func, args, kwargs = urlresolvers.resolve('/en-US/firefox/') eq_(func.__name__, 'home')