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

Method verify_field_equality

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

Source from the content-addressed store, hash-verified

2645
2646 # A helper for timestamp constructor tests.
2647 def verify_field_equality(self, expected, got):
2648 self.assertEqual(expected.tm_year, got.year)
2649 self.assertEqual(expected.tm_mon, got.month)
2650 self.assertEqual(expected.tm_mday, got.day)
2651 self.assertEqual(expected.tm_hour, got.hour)
2652 self.assertEqual(expected.tm_min, got.minute)
2653 self.assertEqual(expected.tm_sec, got.second)
2654
2655 def test_fromtimestamp(self):
2656 import time

Callers 2

test_fromtimestampMethod · 0.95
test_utcfromtimestampMethod · 0.95

Calls 1

assertEqualMethod · 0.45

Tested by

no test coverage detected