def test_syslog_format(): broker = dr.Broker() output = StringIO() with SysLogFormat(broker, stream=output): dr.run(report, broker=broker) output.seek(0) data = output.read() assert SL_MSG in data
def test_syslog_format_archive(): broker = dr.Broker() output = StringIO() with SysLogFormat(broker, archive="../../insights/core", stream=output): dr.run(report, broker=broker) output.seek(0) data = output.read() assert SL_MSG in data assert SL_CMD in data assert SL_ARCHIVE in data assert SL_PATH in data