def _validate_manifest_upload(expected_objs, upload_results):
    """
    Given a list of expected object names and a list of dictionaries of
    `SwiftPath.upload` results, verify that all expected objects are in
    the upload results.
    """
    uploaded_objs = {
        r['object']
        for r in upload_results
        if r['success'] and r['action'] in ('upload_object', 'create_dir_marker')
    }
    return set(expected_objs).issubset(uploaded_objs)