def test_site_nav(): request = Mock() request.APP = amo.FIREFOX request.LANG = 'en-US' content = jinja_helpers.site_nav({'request': request}) assert 'id="site-nav"' in content assert 'Extensions' in content with translation.override('de'): request.LANG = 'de' content_de = jinja_helpers.site_nav({'request': request}) assert 'id="site-nav"' in content_de assert content_de != content assert 'Erweiterungen' in content_de
def test_site_nav(): request = Mock() request.APP = amo.FIREFOX request.LANG = 'en-US' content = jinja_helpers.site_nav({'request': request}) assert 'id="site-nav"' in content assert 'Extensions' in content with translation.override('de'): request.LANG = 'de' content_de = jinja_helpers.site_nav({'request': request}) assert 'id="site-nav"' in content_de assert content_de != content assert 'Erweiterungen' in content_de
def test_site_nav(): r = Mock() r.APP = amo.FIREFOX assert 'id="site-nav"' in jinja_helpers.site_nav({'request': r})
def test_site_nav(): r = Mock() r.APP = amo.FIREFOX assert 'id="site-nav"' in jinja_helpers.site_nav({'request': r})