#NEWLINE# @ pytest . mark . skipif ( 'no_real_wabs_credentials()' ) #NEWLINE# def test_empty_latest_listing( ) : #NEWLINE# #INDENT# "Test listing a 'backup-list LATEST' on an empty prefix." #NEWLINE# container_name = 'wal-e-test-empty-listing' #NEWLINE# layout = storage . StorageLayout ( 'wabs://{0}/test-prefix' . format ( container_name ) ) #NEWLINE# with FreshContainer ( container_name ) as fb : #NEWLINE# #INDENT# fb . create ( ) #NEWLINE# bl = BackupList ( fb . conn , layout , False ) #NEWLINE# found = list ( bl . find_all ( 'LATEST' ) ) #NEWLINE# assert ( len ( layout ) == 0 )