예제 #1
0
 def test_old_template(self, render_mock):
     req = RequestFactory().get('/firefox/features/')
     req.locale = 'de'
     views.features_landing(req)
     render_mock.assert_called_once_with(req, 'firefox/features.html')
예제 #2
0
파일: test_views.py 프로젝트: gerv/bedrock
 def test_old_template(self, render_mock):
     req = RequestFactory().get('/firefox/features/')
     req.locale = 'de'
     views.features_landing(req)
     render_mock.assert_called_once_with(req, 'firefox/features.html')