Exemplo n.º 1
0
   def test_yield_children(self):
       todos = Todos("""a
tb
t\tc
t\tc
t\tx
t\t\td""")
       self.assertTodos(todos.yield_children(), ('a'))
       self.assertTodos(todos.subitems[0].yield_children(), ('\tb'))
       self.assertTodos(todos.subitems[0].subitems[0].yield_children(), ('\t\tc\n\t\tc\n\t\tx'))
Exemplo n.º 2
0
   def test_yield_children(self):
       todos = Todos("""a
tb
t\tc
t\tc
t\tx
t\t\td""")
       self.assertTodos(todos.yield_children(), ('a'))
       self.assertTodos(todos.subitems[0].yield_children(), ('\tb'))
       self.assertTodos(todos.subitems[0].subitems[0].yield_children(),
                        ('\t\tc\n\t\tc\n\t\tx'))