コード例 #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
ファイル: test_url_prefix.py プロジェクト: zuzelvp/olympia
    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')