def setUp(self): IcssploitInterpreter.setup = mock.Mock() self.interpreter = IcssploitInterpreter() self.interpreter.current_module = mock.MagicMock() self.raw_prompt_default = "\001\033[4m\002isf\001\033[0m\002 > " self.module_prompt_default = lambda x: "\001\033[4m\002isf\001\033[0m\002 (\001\033[91m\002{}\001\033[0m\002) > ".format(x) GLOBAL_OPTS.clear()
def setUp(self): self.exploit_foo = TestExploitFoo() self.exploit_bar = TestExploitBar() self.exploit_with_validators = TestExploitWithValidators() GLOBAL_OPTS.clear()