def setUp(self): MohwTestCase.setUp(self) self.conf = XmlConfigParser() self.conf.loadFromString(""" <configuration> </configuration> """) self.parser = MohwParser(self.conf)
def setUp(self): MohwTestCase.setUp(self) self.conf = XmlConfigParser() self.conf.loadFromString(""" <configuration> </configuration> """) self.parser = MohwParser(self.conf) self.parser.startup() # patch parser queueEvent method so we can make assertions on it later on self.queueEvent_patcher = patch.object(self.parser, 'queueEvent') self.queueEvent_mock = self.queueEvent_patcher.start()
def setUp(self): with logging_disabled(): self.conf = CfgConfigParser() self.parser = MohwParser(self.conf)