示例#1
0
 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)
示例#2
0
 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')
示例#3
0
 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)
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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')