Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @patch.object(waffle, 'switch_is_active', Mock(return_value=False))
- @override_settings(DEV=True)
- def test_fx_dev_browser_36_0_a2(self, render_mock):
- """Should use dev browser firstrun template for 36.0a2"""
- req = self.rf.get('/en-US/firefox/firstrun/')
- self.view(req, version='36.0a2')
- template = render_mock.call_args[0][1]
- eq_(template, ['firefox/dev-firstrun.html'])
- eq_(waffle.switch_is_active('dev-edition-spring-campaign'), False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement