Esempio n. 1
0
 def test_get_name_from_dn(self):
     """
     Test that ConcreteLoopback._get_name_from_dn returns the name
     derived from the dn provided
     """
     dn = 'topology/pod-1/node-103/sys/ctx-[vxlan-2916352]/lb-[lo5]'
     self.assertEquals(ConcreteLoopback._get_name_from_dn(dn), '[lo5]')
Esempio n. 2
0
 def test_get_parent_class(self):
     """
     Ensure class has the correct parent class
     """
     self.assertEquals(ConcreteLoopback._get_parent_class(), Node)