'Ask for a page in elvish (doesn\'t exist), and assert that it fallsback
to English'

def test_detail_view_fallback_language(self):

    page = create_page('page1', 'nav_playground.html', 'en')
    with self.settings(TEMPLATE_CONTEXT_PROCESSORS=[], CMS_LANGUAGES={1: [{'code': 'x-klingon', 'name': 'Klingon', 'public': True, 'fallbacks': []}, {'code': 'x-elvish', 'name': 'Elvish', 'public': True, 'fallbacks': ['x-klingon', 'en']}]}):
        create_title('x-klingon', 'futla    ak', page, slug=page.get_slug())
        page.publish('x-klingon')
        from cms.views import details
        def get_path():
            return '/'
        def is_secure():
            return False
        def get_host():
            return 'testserver'
        User = get_user_model()
        request = AttributeObject(GET=QueryDict('language=x-elvish'), POST=QueryDict(''), session={}, path='/', current_page=None, method='GET', COOKIES={}, META={}, user=User(), get_full_path=get_path, is_secure=is_secure, get_host=get_host)
        response = details(request, '')
        self.assertTrue(isinstance(response, HttpResponseRedirect))
