def _metatile_contents_equal(zip_1, zip_2):
    """
    Given two open zip files as arguments, this returns True if the zips
    both contain the same set of files, having the same names, and each
    file within the zip is byte-wise identical to the one with the same
    name in the other zip.
    """

    names_1 = set(zip_1.namelist())
    names_2 = set(zip_2.namelist())

    if names_1 != names_2:
        return False

    for n in names_1:
        bytes_1 = zip_1.read(n)
        bytes_2 = zip_2.read(n)

        if bytes_1 != bytes_2:
            return False

    return True