def test_get_parent(self): a = Node('A') b = Node('B') e = Edge(a, b) self.assertTrue('A' == e.get_parent().get_name())