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

Method test_option_width

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

Source from the content-addressed store, hash-verified

1187 self.assertIn('2004'.encode(enc), output)
1188
1189 def test_option_width(self):
1190 self.assertFailure('-w')
1191 self.assertFailure('--width')
1192 self.assertFailure('-w', 'spam')
1193 for run in self.runners:
1194 output = run('--width', '3', '2004')
1195 self.assertIn(b'Mon Tue Wed Thu Fri Sat Sun', output)
1196
1197 def test_option_lines(self):
1198 self.assertFailure('-l')

Callers

nothing calls this directly

Calls 3

assertFailureMethod · 0.95
assertInMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected