def test_about_render_perf_variation(self, render_mock): req = RequestFactory().get('/?v=b') req.locale = 'en-US' views.about_view(req) render_mock.assert_called_once_with(req, 'mozorg/perf-exp/variation.html', ANY)
def test_about_old_template(self, render_mock): req = RequestFactory().get('/') req.locale = 'de' views.about_view(req) render_mock.assert_called_once_with(req, 'mozorg/about.html')
def test_about_2019_template(self, render_mock): req = RequestFactory().get('/') req.locale = 'en-US' views.about_view(req) render_mock.assert_called_once_with(req, 'mozorg/about-2019.html', ANY)
def test_about_old_template(self, render_mock): req = RequestFactory().get('/') req.locale = 'de' views.about_view(req) render_mock.assert_called_once_with(req, 'mozorg/about.html', ANY)
def test_about_en_template(self, render_mock): req = RequestFactory().get('/') req.locale = 'en-US' views.about_view(req) render_mock.assert_called_once_with(req, 'mozorg/about-en.html')