def METHOD_NAME(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)