diff --git a/kubernetes/base/watch/watch_test.py b/kubernetes/base/watch/watch_test.py index 64378e931..f3880de7c 100644 --- a/kubernetes/base/watch/watch_test.py +++ b/kubernetes/base/watch/watch_test.py @@ -540,9 +540,12 @@ class WatchTests(unittest.TestCase): #Mock logs used for this test w.stream = Mock(return_value=[ "Hello from Docker", - "", # Empty line + "", + "", + "\n\n", "Another log line", - "", # Another empty line + "", + "\n", "Final log" ]) for event in w.stream(self.api.read_namespaced_pod_log, name=pod_name, namespace=self.namespace, follow=True): @@ -556,8 +559,11 @@ class WatchTests(unittest.TestCase): expected_log = [ "Hello from Docker", "", + "", + "\n\n", "Another log line", "", + "\n", "Final log" ]