'test output using the human timestamp format'

def test_human_timestamp_format(self):

    shinken_logger.setLevel(INFO)
    self._collector = Collector()
    sys.stdout = StringIO()
    shinken_logger.handlers[0].stream = sys.stdout
    shinken_logger.load_obj(self._collector)
    shinken_logger.set_human_format(True)
    if isinstance(shinken_logger.handlers[0], ColorStreamHandler):
        loglist = self.generic_tst(shinken_logger.info, 'Some    log-message', [1, 1], ['^\\[.+?\\]    INFO:    \\[Shinken\\]    Some    log-message$', '^\\x1b\\[95m\\[.+?\\]    INFO:    \\[Shinken\\]    Some    log-message\\x1b\\[0m$'])
    else:
        loglist = self.generic_tst(shinken_logger.info, 'Some    log-message', [1, 1], ['^\\[.+?\\]    INFO:    \\[Shinken\\]    Some    log-message$', '^\\[.+?\\]    INFO:    \\[Shinken\\]    Some    log-message$'])
    times = loglist[1][0].split('    INFO:    ', 1)[0]
    (_, time2) = times.rsplit('[', 1)
    time.strptime(time2.rsplit(']')[0], '%a    %b    %d    %H:%M:%S    %Y')
    logger.set_human_format(False)
