From 6c07b392948f4e0ccb3faf6824942d8e699901e7 Mon Sep 17 00:00:00 2001 From: Nathan Klapstein Date: Sun, 18 Nov 2018 16:43:00 -0700 Subject: [PATCH] improving asserts --- tests/integration/test_chunked_logging.py | 3 +++ tests/integration/test_common_logging.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/integration/test_chunked_logging.py b/tests/integration/test_chunked_logging.py index 9209bfa29..b191b2be0 100644 --- a/tests/integration/test_chunked_logging.py +++ b/tests/integration/test_chunked_logging.py @@ -28,4 +28,7 @@ def test_chunked_logging(): assert message == graylog_response["message"] assert "long_message" not in graylog_response assert "timestamp" in graylog_response + assert "facility" in graylog_response + assert "host" in graylog_response + assert "1.0" == graylog_response["version"] assert SYSLOG_LEVELS[logging.ERROR] == graylog_response["level"] diff --git a/tests/integration/test_common_logging.py b/tests/integration/test_common_logging.py index 8da9e5c5b..c210adca8 100644 --- a/tests/integration/test_common_logging.py +++ b/tests/integration/test_common_logging.py @@ -24,4 +24,7 @@ def test_common_logging(logger): assert message == graylog_response["message"] assert "long_message" not in graylog_response assert "timestamp" in graylog_response + assert "facility" in graylog_response + assert "host" in graylog_response + assert "1.0" == graylog_response["version"] assert SYSLOG_LEVELS[logging.ERROR] == graylog_response["level"]