def test_children_concrete_classes(self):
     """
     Test ConcreteCdpIf _get_children_concrete_classes returns something list-like
     """
     node_id = '103'
     node = Node(node_id)
     concreteCdp = ConcreteCdp(node)
     concreteCdpIf = ConcreteCdpIf(concreteCdp)
     self.assertTrue(
         isinstance(
             concreteCdpIf._get_children_concrete_classes(),
             list))
     for child in concreteCdpIf._get_children_concrete_classes():
         self.assertFalse(isinstance(child, ConcreteCdpAdjEp))
 def test_get_name_from_dn(self):
     """
     Test that ConcreteCdpIf._get_name_from_dn returns the name
     derived from the dn provided
     """
     dn = 'topology/pod-1/node-103/sys/cdp/inst/if-[eth1/17]'
     self.assertEquals(ConcreteCdpIf._get_name_from_dn(dn), '[eth1')
 def test_get_parent_class(self):
     """
     Ensure class has the correct parent class
     """
     self.assertEquals(ConcreteCdpIf._get_parent_class(), ConcreteCdp)