MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_str

Method test_str

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

Source from the content-addressed store, hash-verified

265 self.DT = datetime(2010, 1, 1)
266
267 def test_str(self):
268 for tz in [self.ACDT, self.EST, timezone.utc,
269 timezone.min, timezone.max]:
270 self.assertEqual(str(tz), tz.tzname(None))
271
272 def test_repr(self):
273 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