class TestConfigurationStoragePoolTemplates(CloubedTestCase): def setUp(self): storage_pool_item = { 'name': 'test_name', 'path': '/test_path' } self._loader = MockConfigurationLoader(conf_minimal) self.conf = Configuration(self._loader) self.storage_pool_conf = ConfigurationStoragePool(self.conf, storage_pool_item) def test_get_templates_dict(self): """ ConfigurationStoragePool.get_templates_dict() should return a dict without all parameters of the storage pool """ self.assertEqual(self.storage_pool_conf.get_templates_dict(), {'storagepool.test_name.path': '/test_path'})