def setUp(self): Iourt42TestCase.setUp(self) self.conf = CfgConfigParser() self.p = Weaponcontrolurt42Plugin(self.console, self.conf) logger = logging.getLogger("output") logger.setLevel(logging.DEBUG) self.player = Test_events.FakeUrtClient( self.console, name="Player", guid="Player_guid", groupBits=4, team=TEAM_RED ) self.player.connects("1") self.p.check_client = Mock(wraps=self.p.check_client) self.console.write = Mock()
def setUp(self): Iourt42TestCase.setUp(self) self.conf = CfgConfigParser() self.p = Weaponcontrolurt42Plugin(self.console, self.conf) logger = logging.getLogger('output') logger.setLevel(logging.DEBUG) self.player = Test_events.FakeUrtClient(self.console, name="Player", guid="Player_guid", groupBits=4, team=TEAM_RED) self.player.connects("1") self.p.check_client = Mock(wraps=self.p.check_client) self.console.write = Mock()
def setUp(self): Iourt42TestCase.setUp(self) self.conf = CfgConfigParser() self.p = Weaponcontrolurt42Plugin(self.console, self.conf) logger = logging.getLogger("output") logger.setLevel(logging.INFO) self.info_patcher = patch.object(self.p, "info", wraps=self.p.info) self.info_mock = self.info_patcher.start() self.warning_patcher = patch.object(self.p, "warning", wraps=self.p.warning) self.warning_mock = self.warning_patcher.start() self.error_patcher = patch.object(self.p, "error", wraps=self.p.error) self.error_mock = self.error_patcher.start()
def setUp(self): Iourt42TestCase.setUp(self) self.conf = CfgConfigParser() self.p = Weaponcontrolurt42Plugin(self.console, self.conf) logger = logging.getLogger('output') logger.setLevel(logging.INFO) self.info_patcher = patch.object(self.p, "info", wraps=self.p.info) self.info_mock = self.info_patcher.start() self.warning_patcher = patch.object(self.p, "warning", wraps=self.p.warning) self.warning_mock = self.warning_patcher.start() self.error_patcher = patch.object(self.p, "error", wraps=self.p.error) self.error_mock = self.error_patcher.start()
def setUp(self): Iourt42TestCase.setUp(self) self.conf = CfgConfigParser() self.p = Weaponcontrolurt42Plugin(self.console, self.conf) logger = logging.getLogger('output') logger.setLevel(logging.DEBUG) self.info_patcher = patch.object(self.p, "info", wraps=self.p.info) self.info_mock = self.info_patcher.start() self.warning_patcher = patch.object(self.p, "warning", wraps=self.p.warning) self.warning_mock = self.warning_patcher.start() self.error_patcher = patch.object(self.p, "error", wraps=self.p.error) self.error_mock = self.error_patcher.start() self.write_patcher = patch.object(self.console, "write") self.write_mock = self.write_patcher.start() self.p.check_connected_players = Mock()