def test_old_template(self, render_mock): view = views.FirefoxProductIOSView() view.request = RequestFactory().get('/firefox/ios/') view.request.locale = 'fr' eq_(view.get_template_names(), ['firefox/ios.html'])
def test_en_us_template(self): view = views.FirefoxProductIOSView() view.request = RequestFactory().get('/firefox/ios/') view.request.locale = 'en-US' eq_(view.get_template_names(), ['firefox/products/ios.html'])