def test_panic_logs_and_exits(self):
        try:
            assert False
        except __HOLE__:
            args = sys.exc_info()

        with mock.patch('logging.critical') as logmock:
            with self.assertRaises(SystemExit):
                goless.on_panic(*args)
        self.assertEqual(logmock.call_count, 1)
dataset/ETHPy150Open rgalanakis/goless/tests/test_goless.py/PanicTests.test_panic_logs_and_exits