def METHOD_NAME(fltr_):
    matching_versions = set()
    for pkg in iter_packages(pkg_family):
        if not fltr_.excludes(pkg):
            matching_versions.add(str(pkg.version))
    self.assertEqual(matching_versions, set(expected_result))