Check if sublocales fall back to the main locale
(self)
| 1200 | ) |
| 1201 | |
| 1202 | def test_sub_locales(self): |
| 1203 | """ |
| 1204 | Check if sublocales fall back to the main locale |
| 1205 | """ |
| 1206 | with self.settings(USE_THOUSAND_SEPARATOR=True): |
| 1207 | with translation.override("de-at", deactivate=True): |
| 1208 | self.assertEqual("66.666,666", Template("{{ n }}").render(self.ctxt)) |
| 1209 | with translation.override("es-us", deactivate=True): |
| 1210 | self.assertEqual("31 de diciembre de 2009", date_format(self.d)) |
| 1211 | |
| 1212 | def test_localized_input(self): |
| 1213 | """ |
nothing calls this directly
no test coverage detected