diff options
| author | Senthil Kumaran <senthil@uthcode.com> | 2012-03-13 07:14:25 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <senthil@uthcode.com> | 2012-03-13 07:14:25 (GMT) |
| commit | 7554f0dd3ca6219db07adcc222cef776d37512a6 (patch) | |
| tree | 9139b775096275084284e8b2cf459c81818ffc58 /Lib/unittest/test/test_program.py | |
| parent | 9186850088a94627b60fa80102edc858c332b51c (diff) | |
| parent | a9719057a2ee1875c6334b1d5fbbf66cfc02ca78 (diff) | |
| download | cpython-7554f0dd3ca6219db07adcc222cef776d37512a6.zip cpython-7554f0dd3ca6219db07adcc222cef776d37512a6.tar.gz cpython-7554f0dd3ca6219db07adcc222cef776d37512a6.tar.bz2 | |
merge heads
Diffstat (limited to 'Lib/unittest/test/test_program.py')
| -rw-r--r-- | Lib/unittest/test/test_program.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py index d5d0f5a..9794868 100644 --- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -131,23 +131,6 @@ class TestCommandLineArgs(unittest.TestCase): FakeRunner.test = None FakeRunner.raiseError = False - def testHelpAndUnknown(self): - program = self.program - def usageExit(msg=None): - program.msg = msg - program.exit = True - program.usageExit = usageExit - - for opt in '-h', '-H', '--help': - program.exit = False - program.parseArgs([None, opt]) - self.assertTrue(program.exit) - self.assertIsNone(program.msg) - - program.parseArgs([None, '-$']) - self.assertTrue(program.exit) - self.assertIsNotNone(program.msg) - def testVerbosity(self): program = self.program |
