def setUp(self): session.init() self.open_brain_hook = mock.MagicMock() self.open_brain_hook.__name__ = "open_brain_hook" self.close_brain_hook = mock.MagicMock() self.close_brain_hook.__name__ = "close_brain_hook" hook.add(hook.HOOK_OPEN_BRAIN, self.open_brain_hook) hook.add(hook.HOOK_CLOSE_BRAIN, self.close_brain_hook)
def tearDown(self): session.init()
def init(): auxiliary.init() command.init() hook.init() parser.init() session.init()