'Check if sublocales fall back to the main locale'

def test_sub_locales(self):

    settings.USE_L10N = True
    activate('de-at')
    settings.USE_THOUSAND_SEPARATOR = True
    try:
        self.assertEqual(u'66.666,666', Template('{{    n    }}').render(self.ctxt))
    finally:
        deactivate()
    activate('es-us')
    try:
        self.assertEqual(u'31    de    diciembre    de    2009', date_format(self.d))
    finally:
        deactivate()
