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

Method test_fromtimestamp

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

Source from the content-addressed store, hash-verified

2614 self.assertEqual(expected.tm_sec, got.second)
2615
2616 def test_fromtimestamp(self):
2617 import time
2618
2619 ts = time.time()
2620 expected = time.localtime(ts)
2621 got = self.theclass.fromtimestamp(ts)
2622 self.verify_field_equality(expected, got)
2623
2624 def test_fromtimestamp_keyword_arg(self):
2625 import time

Callers

nothing calls this directly

Calls 3

verify_field_equalityMethod · 0.95
timeMethod · 0.45
fromtimestampMethod · 0.45

Tested by

no test coverage detected