def METHOD_NAME(self, metadata):
    dists = dict(
        (d.project_name, d) for d in pkg_resources.find_distributions(metadata)
    )
    assert len(dists) == 2, dists
    unversioned = dists['UnversionedDistribution']
    versioned = dists['VersionedDistribution']
    assert versioned.version == '2.718'  # from filename
    assert unversioned.version == '0.3'  # from METADATA