def METHOD_NAME(self):
    self.assertRaises(
        SystemExit,
        unittest.main,
        argv=["foobar"],
        testRunner=unittest.TextTestRunner(stream=StringIO()),
        exit=True,
        testLoader=self.FooBarLoader())