def test_get_name_from_dn(self): """ Test that ConcreteFilter._get_name_from_dn returns the name derived from the dn provided """ dn = 'topology/pod-1/node-102/sys/actrl/filt-implicit' self.assertEquals(ConcreteFilter._get_name_from_dn(dn), 'implicit')
def test_get_parent_class(self): """ Ensure class has the correct parent class """ self.assertEquals(ConcreteFilter._get_parent_class(), Node)