'Catalan locale with format i18n disabled translations will be used,
but not formats'

@override_settings(USE_L10N=False)
def test_l10n_disabled(self):

    with translation.override('ca', deactivate=True):
        self.maxDiff = 3000
        self.assertEqual('N    j,    Y', get_format('DATE_FORMAT'))
        self.assertEqual(0, get_format('FIRST_DAY_OF_WEEK'))
        self.assertEqual('.', get_format('DECIMAL_SEPARATOR'))
        self.assertEqual('10:15    a.m.', time_format(self.t))
        self.assertEqual('des.    31,    2009', date_format(self.d))
        self.assertEqual('desembre    2009', date_format(self.d, 'YEAR_MONTH_FORMAT'))
        self.assertEqual('12/31/2009    8:50    p.m.', date_format(self.dt, 'SHORT_DATETIME_FORMAT'))
        self.assertEqual('No    localizable', localize('No    localizable'))
        self.assertEqual('66666.666', localize(self.n))
        self.assertEqual('99999.999', localize(self.f))
        self.assertEqual('10000', localize(self.long))
        self.assertEqual('des.    31,    2009', localize(self.d))
        self.assertEqual('des.    31,    2009,    8:50    p.m.', localize(self.dt))
        self.assertEqual('66666.666', Template('{{    n    }}').render(self.ctxt))
        self.assertEqual('99999.999', Template('{{    f    }}').render(self.ctxt))
        self.assertEqual('des.    31,    2009', Template('{{    d    }}').render(self.ctxt))
        self.assertEqual('des.    31,    2009,    8:50    p.m.', Template('{{    dt    }}').render(self.ctxt))
        self.assertEqual('66666.67', Template('{{    n|floatformat:2    }}').render(self.ctxt))
        self.assertEqual('100000.0', Template('{{    f|floatformat    }}').render(self.ctxt))
        self.assertEqual('10:15    a.m.', Template('{{    t|time:"TIME_FORMAT"    }}').render(self.ctxt))
        self.assertEqual('12/31/2009', Template('{{    d|date:"SHORT_DATE_FORMAT"    }}').render(self.ctxt))
        self.assertEqual('12/31/2009    8:50    p.m.', Template('{{    dt|date:"SHORT_DATETIME_FORMAT"    }}').render(self.ctxt))
        form = I18nForm({'decimal_field': '66666,666', 'float_field': '99999,999', 'date_field': '31/12/2009', 'datetime_field': '31/12/2009    20:50', 'time_field': '20:50', 'integer_field': '1.234'})
        self.assertFalse(form.is_valid())
        self.assertEqual(['Introdu\xefu    un    n\xfamero.'], form.errors['float_field'])
        self.assertEqual(['Introdu\xefu    un    n\xfamero.'], form.errors['decimal_field'])
        self.assertEqual(['Introdu\xefu    una    data    v\xe0lida.'], form.errors['date_field'])
        self.assertEqual(['Introdu\xefu    una    data/hora    v\xe0lides.'], form.errors['datetime_field'])
        self.assertEqual(['Introdu\xefu    un    n\xfamero    sencer.'], form.errors['integer_field'])
        form2 = SelectDateForm({'date_field_month': '12', 'date_field_day': '31', 'date_field_year': '2009'})
        self.assertTrue(form2.is_valid())
        self.assertEqual(datetime.date(2009, 12, 31), form2.cleaned_data['date_field'])
        self.assertHTMLEqual('<select    name="mydate_month"    id="id_mydate_month"><option    value="0">---</option><option    value="1">gener</option><option    value="2">febrer</option><option    value="3">mar\xe7</option><option    value="4">abril</option><option    value="5">maig</option><option    value="6">juny</option><option    value="7">juliol</option><option    value="8">agost</option><option    value="9">setembre</option><option    value="10">octubre</option><option    value="11">novembre</option><option    value="12"    selected>desembre</option></select><select    name="mydate_day"    id="id_mydate_day"><option    value="0">---</option><option    value="1">1</option><option    value="2">2</option><option    value="3">3</option><option    value="4">4</option><option    value="5">5</option><option    value="6">6</option><option    value="7">7</option><option    value="8">8</option><option    value="9">9</option><option    value="10">10</option><option    value="11">11</option><option    value="12">12</option><option    value="13">13</option><option    value="14">14</option><option    value="15">15</option><option    value="16">16</option><option    value="17">17</option><option    value="18">18</option><option    value="19">19</option><option    value="20">20</option><option    value="21">21</option><option    value="22">22</option><option    value="23">23</option><option    value="24">24</option><option    value="25">25</option><option    value="26">26</option><option    value="27">27</option><option    value="28">28</option><option    value="29">29</option><option    value="30">30</option><option    value="31"    selected>31</option></select><select    name="mydate_year"    id="id_mydate_year"><option    value="0">---</option><option    value="2009"    selected>2009</option><option    value="2010">2010</option><option    value="2011">2011</option><option    value="2012">2012</option><option    value="2013">2013</option><option    value="2014">2014</option><option    value="2015">2015</option><option    value="2016">2016</option><option    value="2017">2017</option><option    value="2018">2018</option></select>', forms.SelectDateWidget(years=range(2009, 2019)).render('mydate', datetime.date(2009, 12, 31)))
        with self.settings(USE_THOUSAND_SEPARATOR=True, NUMBER_GROUPING=1, THOUSAND_SEPARATOR='!'):
            self.assertEqual('66666.67', Template('{{    n|floatformat:2    }}').render(self.ctxt))
            self.assertEqual('100000.0', Template('{{    f|floatformat    }}').render(self.ctxt))
