コード例 #1
0
    def test_set_profile_attributes(self):
        profiles = Profile.get(self.session)
        testprofile = profiles[0]

        for method in dir(profiles[0]):
            if method.startswith('set_'):
                a = getattr(testprofile, method)
                a('foo')
コード例 #2
0
    def test_set_profile_attributes(self):
        profiles = Profile.get(self.session)
        testprofile = profiles[0]

        for method in dir(profiles[0]):
            if method.startswith('set_'):
                a = getattr(testprofile, method)
                a('foo')
コード例 #3
0
 def test_get_profiles(self):
     profiles = Profile.get(self.session())
     self.assertIsInstance(profiles, list)
コード例 #4
0
 def test_create_profile(self):
     p = Profile()
     self.assertIsInstance(p, Profile)
コード例 #5
0
 def test_get_profiles_by_name(self):
     name = 'vrf-common-evpn'
     profile = Profile.get(self.session, name=name)
     self.assertEqual(str(profile), name)
コード例 #6
0
 def test_get_profiles(self):
     profiles = Profile.get(self.session())
     self.assertIsInstance(profiles, list)
コード例 #7
0
 def test_get_profiles_by_name(self):
     name='vrf-common-evpn'
     profile= Profile.get(self.session, name=name)
     self.assertEqual(str(profile), name)