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

Method test_option_months

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

Source from the content-addressed store, hash-verified

1211 self.assertIn(b'Su Mo', output)
1212
1213 def test_option_months(self):
1214 self.assertFailure('-m')
1215 self.assertFailure('--month')
1216 self.assertFailure('-m', 'spam')
1217 for run in self.runners:
1218 output = run('--months', '1', '2004')
1219 self.assertIn(conv('\nMo Tu We Th Fr Sa Su\n'), output)
1220
1221 def test_option_type(self):
1222 self.assertFailure('-t')

Callers

nothing calls this directly

Calls 4

assertFailureMethod · 0.95
convFunction · 0.85
assertInMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected