def test_one_ancestor_not_last_child(self): """Should only care about its own position""" self.assertEqual(tree_pad(self.string, [False], last=False), TreePadTest.PIPE + self.string)
def test_multiple_ancestors(self): result = tree_pad(self.string, [False, True, False, False, True], last=False) self.assertTrue(result.endswith(TreePadTest.PIPE + self.string))
def test_no_ancestors(self): self.assertEqual(tree_pad(self.string, []), self.string)