Ejemplo n.º 1
0
    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')
Ejemplo n.º 2
0
    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')
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
    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()
Ejemplo n.º 5
0
 def test_create_blank_template(self):
     t = ConfigTemplate()
     self.assertIsInstance(t, ConfigTemplate)
Ejemplo n.º 6
0
 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)
Ejemplo n.º 7
0
 def test_get_config_templates(self):
     templates = ConfigTemplate.get(self.session)
     self.assertIsInstance(templates, list)
Ejemplo n.º 8
0
 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)
Ejemplo n.º 9
0
 def test_get_config_templates(self):
     templates = ConfigTemplate.get(self.session)
     self.assertIsInstance(templates, list)