예제 #1
0
 def test_system_requirements(self, get_release_or_404):
     """
     Should use release returned from get_release_or_404, with a
     default channel of Release and default product of Firefox,
     and pass the version to l10n_utils.render
     """
     views.system_requirements(self.request, '27.0.1')
     get_release_or_404.assert_called_with('27.0.1', 'Firefox')
     eq_(self.last_ctx['release'], get_release_or_404.return_value)
     eq_(self.last_ctx['version'], '27.0.1')
     eq_(self.mock_render.call_args[0][1],
         'firefox/releases/system_requirements.html')
예제 #2
0
 def test_system_requirements(self, get_release_or_404):
     """
     Should use release returned from get_release_or_404, with a
     default channel of Release and default product of Firefox,
     and pass the version to l10n_utils.render
     """
     views.system_requirements(self.request, '27.0.1')
     get_release_or_404.assert_called_with('27.0.1', 'Firefox')
     eq_(self.last_ctx['release'], get_release_or_404.return_value)
     eq_(self.last_ctx['version'], '27.0.1')
     eq_(self.mock_render.call_args[0][1],
         'firefox/releases/system_requirements.html')