'Inspect the files contained within the capsule and make sure each is defined correctly
in the capsule manifest.'

def verify_archives_in_capsule(self, file_path, archives):

    error_message = ''
    for archive_file_name in archives:
        full_path = os.path.join(file_path, archive_file_name)
        if (not os.path.exists(full_path)):
            error_message = 'The    uploaded    capsule    is    invalid    because    the    contained    manifest.xml    '
            error_message += ('file    defines    an    archive    file    named    <b>%s</b>    which    ' % str(archive_file_name))
            error_message += 'is    not    contained    within    the    capsule.'
            break
    return error_message
