'Check if L10N is deactivated, the Javascript i18n view doesn\'t
return localized date/time formats. Refs #14824.'

def testL10NDeactivated(self):

    try:
        settings.LANGUAGE_CODE = 'ru'
        settings.USE_L10N = False
        activate('ru')
        response = self.client.get('/test_admin/admin/jsi18n/')
        self.assertNotContains(response, '%d.%m.%Y    %H:%M:%S')
        self.assertContains(response, '%Y-%m-%d    %H:%M:%S')
    finally:
        deactivate()
