예제 #1
0
    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')
예제 #2
0
    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')