

def _do_test_attributes_in_white_list(self, release, expected_attributes):
    cluster_data = self.env.create_cluster(release_id=release.id)
    cluster = Cluster.get_by_uid(cluster_data['id'])
    editable = cluster.attributes.editable
    info = InstallationInfo()
    actual_attributes = info.get_attributes(editable, info.attributes_white_list)
    self.assertEqual(set(expected_attributes), set(actual_attributes.keys()))

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/fuel_statistics_tests/test_installation_info.py TestInstallationInfo._do_test_attributes_in_white_list/original