(self, *args)
| 1100 | return assert_python_ok('-m', 'calendar', *args)[1] |
| 1101 | |
| 1102 | def assertCLIFails(self, *args): |
| 1103 | with self.captured_stderr_with_buffer() as stderr: |
| 1104 | self.assertRaises(SystemExit, calendar.main, args) |
| 1105 | stderr = stderr.buffer.read() |
| 1106 | self.assertIn(b'usage:', stderr) |
| 1107 | return stderr |
| 1108 | |
| 1109 | def assertCmdFails(self, *args): |
| 1110 | rc, stdout, stderr = assert_python_failure('-m', 'calendar', *args) |
no test coverage detected