def test_set_and_get_parent_id(self): n = Node(id='1') n.set_parent_id(0) id = n.get_parent_id() self.assertEqual(0, id)
def test_parent_id(self): n = Node(id='6', parent_id='1') self.assertEqual(n.get_parent_id(), '1')