def METHOD_NAME(self):
    try:
        parser = main.createParser()
        parser.parse_args(["view", "--foo"])
        self.fail()
    except SystemExit as e:
        result = e.args[0]
    self.assertNotEqual(result, 0)