def test_build_logs_api_follow(self, osbs): logs = osbs.get_build_logs(TEST_BUILD, follow=True) assert isinstance(logs, GeneratorType) assert next(logs) == "line 1" with pytest.raises(StopIteration): assert next(logs)
def test_build_logs_api(self, osbs): logs = osbs.get_build_logs(TEST_BUILD) assert isinstance(logs, six.string_types) assert logs == "line 1"