def feature_status(self): """ Create Feature object and enable bgp and disable dhcp """ feature = Feature() feature.enable('bgp') feature.disable('dhcp') return feature
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