def test_deleted_folder_on_fetch(monkeypatch, generic_client, constants):
 def raise_invalid_uid_exc(*args, **kwargs):
  raise imapclient.IMAPClient.Error('[UNAVAILABLE] UID FETCH Server error while fetching messages')
 monkeypatch.setattr('imapclient.IMAPClient.fetch', raise_invalid_uid_exc)
 generic_client.uids(['125'])

def test_deleted_folder_on_fetch ( monkeypatch , generic_client , constants ) : def raise_invalid_uid_exc ( * args , ** kwargs ) : raise imapclient . IMAPClient . Error ( '[UNAVAILABLE] UID FETCH Server error while fetching messages' ) monkeypatch . setattr ( 'imapclient.IMAPClient.fetch' , raise_invalid_uid_exc ) generic_client . uids ( [ '125' ] )
test that a select failed examine error specifying that a folder doesnt exist is converted into a foldermissingerror .