示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def test_build_logs_api(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD)
     assert isinstance(logs, six.string_types)
     assert logs == "line 1"
示例#4
0
 def test_build_logs_api(self, osbs):
     logs = osbs.get_build_logs(TEST_BUILD)
     assert isinstance(logs, six.string_types)
     assert logs == "line 1"