コード例 #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')
コード例 #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')
コード例 #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()
コード例 #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()
コード例 #5
0
 def test_create_blank_template(self):
     t = ConfigTemplate()
     self.assertIsInstance(t, ConfigTemplate)
コード例 #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)
コード例 #7
0
 def test_get_config_templates(self):
     templates = ConfigTemplate.get(self.session)
     self.assertIsInstance(templates, list)
コード例 #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)
コード例 #9
0
 def test_get_config_templates(self):
     templates = ConfigTemplate.get(self.session)
     self.assertIsInstance(templates, list)