def METHOD_NAME(self):
    program = self.program
    for arg, attr in (('buffer', 'buffer'), ('failfast', 'failfast'),
                  ('catch', 'catchbreak')):
        if attr == 'catch' and not hasInstallHandler:
            continue
        short_opt = '-%s' % arg[0]
        long_opt = '--%s' % arg
        for opt in short_opt, long_opt:
            setattr(program, attr, None)
            program.parseArgs([None, opt])
            self.assertTrue(getattr(program, attr))
        for opt in short_opt, long_opt:
            not_none = object()
            setattr(program, attr, not_none)
            program.parseArgs([None, opt])
            self.assertEqual(getattr(program, attr), not_none)