Example #1
0
 def setUp(self):
     MohwTestCase.setUp(self)
     self.conf = XmlConfigParser()
     self.conf.loadFromString("""
             <configuration>
             </configuration>
         """)
     self.parser = MohwParser(self.conf)
Example #2
0
 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()
Example #3
0
 def setUp(self):
     with logging_disabled():
         self.conf = CfgConfigParser()
         self.parser = MohwParser(self.conf)