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

Method verify_field_equality

Lib/test/datetimetester.py:2608–2614  ·  view source on GitHub ↗
(self, expected, got)

Source from the content-addressed store, hash-verified

2606
2607 # A helper for timestamp constructor tests.
2608 def verify_field_equality(self, expected, got):
2609 self.assertEqual(expected.tm_year, got.year)
2610 self.assertEqual(expected.tm_mon, got.month)
2611 self.assertEqual(expected.tm_mday, got.day)
2612 self.assertEqual(expected.tm_hour, got.hour)
2613 self.assertEqual(expected.tm_min, got.minute)
2614 self.assertEqual(expected.tm_sec, got.second)
2615
2616 def test_fromtimestamp(self):
2617 import time

Callers 2

test_fromtimestampMethod · 0.95
test_utcfromtimestampMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected