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