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')
def test_get_profiles(self): profiles = Profile.get(self.session()) self.assertIsInstance(profiles, list)
def test_create_profile(self): p = Profile() self.assertIsInstance(p, Profile)
def test_get_profiles_by_name(self): name = 'vrf-common-evpn' profile = Profile.get(self.session, name=name) self.assertEqual(str(profile), name)
def test_get_profiles_by_name(self): name='vrf-common-evpn' profile= Profile.get(self.session, name=name) self.assertEqual(str(profile), name)