Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 def test_no_ancestors(self):
     self.assertEqual(tree_pad(self.string, []), self.string)