@patch.object(fx_views.WhatsnewView, 'fxos_locales', ['de'])
@override_settings(DEV=True)
def test_fxos_locales(self, render_mock):
    'Should use a different template for fxos locales.'
    req = self.rf.get('/de/firefox/whatsnew/')
    req.locale = 'de'
    self.view(req)
    template = render_mock.call_args[0][1]
    ctx = render_mock.call_args[0][2]
    ok_(('locales_with_video' not in ctx))
    eq_(template, ['firefox/whatsnew-fxos.html'])
Should use a different template for fxos locales.
@patch.object(fx_views.WhatsnewView, 'fxos_locales', ['de'])
@override_settings(DEV=True)
def test_fxos_locales(self, render_mock):
    
    req = self.rf.get('/de/firefox/whatsnew/')
    req.locale = 'de'
    self.view(req)
    template = render_mock.call_args[0][1]
    ctx = render_mock.call_args[0][2]
    ok_(('locales_with_video' not in ctx))
    eq_(template, ['firefox/whatsnew-fxos.html'])