@test.raises(SystemExit)
    def test_close_with_code(self):
        app = self.make_app(APP, exit_on_close=True)
        app.setup()
        app.run()
        try:
            app.close(114)
        except __HOLE__ as e:
            self.eq(e.code, 114)
            raise
dataset/ETHPy150Open datafolklabs/cement/tests/core/foundation_tests.py/FoundationTestCase.test_close_with_code