def test_set_template_attributes(self): templates = ConfigTemplate.get(self.session) testtemplate = templates[0] for method in dir(testtemplate): if method.startswith('set_'): a = getattr(testtemplate, method) a('foo')
def test_get_template_attributes(self): templates = ConfigTemplate.get(self.session) self.assertIsInstance(templates, list) testtemplate = templates[0] for method in dir(testtemplate): if method.startswith('get_'): a = getattr(testtemplate, method) a()
def test_get_template_by_name(self): template_name = 'IPFabric_VDC_BorderLeaf_v01' template = ConfigTemplate.get(self.session, name=template_name) self.assertEqual(template.get_name(), template_name)
def test_get_config_templates(self): templates = ConfigTemplate.get(self.session) self.assertIsInstance(templates, list)