def test_logMessage_integration(self):
     logger = LoggingMixin()
     logger.log_file = StringIO()
     logger.logMessage("Probing...")
     logger.log_file.seek(0)
     message = logger.log_file.read()
     self.assertNotEqual(None, message)
 def test_logMessage_integration(self):
     logger = LoggingMixin()
     logger.log_file = StringIO()
     logger.logMessage("Probing...")
     logger.log_file.seek(0)
     message = logger.log_file.read()
     self.assertNotEqual(None, message)
 def test_logMessage_output(self):
     logger = LoggingMixin()
     logger.log_file = StringIO()
     logger._getTime = self._fake_gettime
     logger.logMessage("Ubuntu Warty Released")
     logger.log_file.seek(0)
     message = logger.log_file.read()
     self.failUnlessEqual('Wed Oct 20 12:00:00 2004: Ubuntu Warty Released',
                          message)
 def test_logMessage_output(self):
     logger = LoggingMixin()
     logger.log_file = StringIO()
     logger._getTime = self._fake_gettime
     logger.logMessage("Ubuntu Warty Released")
     logger.log_file.seek(0)
     message = logger.log_file.read()
     self.failUnlessEqual(
         'Wed Oct 20 12:00:00 2004: Ubuntu Warty Released',
         message)