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

Method test_prweek

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

Source from the content-addressed store, hash-verified

514 )
515
516 def test_prweek(self):
517 with support.captured_stdout() as out:
518 week = [(1,0), (2,1), (3,2), (4,3), (5,4), (6,5), (7,6)]
519 calendar.TextCalendar().prweek(week, 1)
520 self.assertEqual(out.getvalue(), " 1 2 3 4 5 6 7")
521
522 def test_prmonth(self):
523 with support.captured_stdout() as out:

Callers

nothing calls this directly

Calls 3

prweekMethod · 0.80
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected