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

Method test_output_current_year

Lib/test/test_calendar.py:1141–1147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1139 self.assertFailure('2004', '1', '1', 'spam')
1140
1141 def test_output_current_year(self):
1142 for run in self.runners:
1143 output = run()
1144 year = datetime.datetime.now().year
1145 self.assertIn(conv(' %s' % year), output)
1146 self.assertIn(b'January', output)
1147 self.assertIn(b'Mo Tu We Th Fr Sa Su', output)
1148
1149 def test_output_year(self):
1150 for run in self.runners:

Callers

nothing calls this directly

Calls 4

convFunction · 0.85
nowMethod · 0.80
assertInMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected