def test_get_name_from_dn(self): """ Test that ConcreteContext._get_name_from_dn returns the name derived from the dn provided """ dn = 'topology/pod-1/node-202/sys/ctx-[vxlan-2129920]' self.assertEquals( ConcreteContext._get_name_from_dn(dn), '[vxlan-2129920]')