MCPcopy Index your code
hub / github.com/python/cpython / test_str

Method test_str

Lib/test/datetimetester.py:272–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270 self.DT = datetime(2010, 1, 1)
271
272 def test_str(self):
273 for tz in [self.ACDT, self.EST, timezone.utc,
274 timezone.min, timezone.max]:
275 self.assertEqual(str(tz), tz.tzname(None))
276
277 def test_repr(self):
278 datetime = datetime_module

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
assertEqualMethod · 0.45
tznameMethod · 0.45

Tested by

no test coverage detected