@pytest.mark.skipif("no_real_wabs_credentials()")
def test_empty_latest_listing():
    container_name = 'wal-e-test-empty-listing'
    layout = storage.StorageLayout('wabs://{0}/test-prefix'
                                   .format(container_name))

    with FreshContainer(container_name) as fb:
        fb.create()
        bl = BackupList(fb.conn, layout, False)
        found = list(bl.find_all('LATEST'))
        assert len(found) == 0
Context manager to silence warnings.
dataset/ETHPy150Open wal-e/wal-e/tests/test_wabs_worker.py/test_empty_latest_listing--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/check_warnings