(self)
| 1257 | ) |
| 1258 | |
| 1259 | def test_localized_input_func(self): |
| 1260 | tests = ( |
| 1261 | (True, "True"), |
| 1262 | (datetime.date(1, 1, 1), "0001-01-01"), |
| 1263 | (datetime.datetime(1, 1, 1), "0001-01-01 00:00:00"), |
| 1264 | ) |
| 1265 | with self.settings(USE_THOUSAND_SEPARATOR=True): |
| 1266 | for value, expected in tests: |
| 1267 | with self.subTest(value=value): |
| 1268 | self.assertEqual(localize_input(value), expected) |
| 1269 | |
| 1270 | def test_sanitize_strftime_format(self): |
| 1271 | for year in (1, 99, 999, 1000): |
nothing calls this directly
no test coverage detected