def test_feature(self): session = self.login_to_switch() self.assertRaises(TypeError, Feature.get, None) feature = Feature(session=session) self.assertTrue(isinstance(feature, Feature))
def feature_status(self): feature = Feature() feature.enable('bgp') feature.disable('dhcp') return feature