def test_flags_that_cause_program_abort(self):
    # using a flag that isn't acceptable should raise
    # an exception
    argv_1 = ['--boo!']
    self.assertRaises(SystemExit, ParseArgs, argv_1, 
      self.function)

    # the version flag should quit and print the current
    # version of the tools
    argv_2 = ['--version']
    try:
      ParseArgs(argv_2, self.function)
      raise
    except __HOLE__:
      pass
dataset/ETHPy150Open AppScale/appscale-tools/test/test_parse_args.py/TestParseArgs.test_flags_that_cause_program_abort