MCPcopy
hub / github.com/django/django / test_localized_input_func

Method test_localized_input_func

tests/i18n/tests.py:1259–1268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

localize_inputFunction · 0.90
settingsMethod · 0.45

Tested by

no test coverage detected