def test_cluster_resource_mapping(self): cluster = self._init_cluster(self.t) mapping = sc.resource_mapping() self.assertEqual(1, len(mapping)) self.assertEqual(sc.SaharaCluster, mapping['OS::Sahara::Cluster']) self.assertIsInstance(cluster, sc.SaharaCluster)