Ejemplo n.º 1
0
 def setUp(self):
     super(Test_client_connects, self).setUp()
     self.conf = CfgConfigParser()
     self.conf.loadFromString("""[foo]""")
     self.p = VacbanPlugin(self.console, self.conf)
     self.p.onLoadConfig()
     when(self.p)._checkConnectedPlayers().thenReturn()
     self.p.onStartup()
     when(self.p)._query_service(
         anything()).thenReturn(vac_response_not_banned)
Ejemplo n.º 2
0
    def setUp(self):
        super(Test_commands, self).setUp()
        self.conf = CfgConfigParser()
        self.conf.loadFromString("""[commands]
vaccheck: 20
        """)
        self.p = VacbanPlugin(self.console, self.conf)
        self.p.onLoadConfig()
        self.p.onStartup()

        when(self.p)._query_service(
            anything()).thenReturn(vac_response_not_banned)
        self.moderator.connects("2")
 def setUp(self):
     PluginTestCase.setUp(self)
     self.conf = CfgConfigParser()
     self.p = VacbanPlugin(self.console, self.conf)
Ejemplo n.º 4
0
 def setUp(self):
     super(Test_config, self).setUp()
     self.conf = CfgConfigParser()
     self.p = VacbanPlugin(self.console, self.conf)
     logger = logging.getLogger('output')
     logger.setLevel(logging.INFO)