def test_sync_page_57_template(self, render_mock): req = RequestFactory().get('/firefox/features/sync/') req.locale = 'en-US' views.sync_page(req) render_mock.assert_called_once_with(req, 'firefox/features/quantum/sync.html')
def test_old_sync_page_template(self, render_mock): req = RequestFactory().get('/firefox/features/sync/') req.locale = 'de' views.sync_page(req) render_mock.assert_called_once_with(req, 'firefox/features/sync-old.html')