def test_traverse_list_tasks (self):
        n1 = Task (name=u'n1')
        n2 = Task (name=u'n2')
        nodes = [n1,n2]
        visitor = DemoVisitor ()
        traverse_list (visitor, nodes)
        self.assertEqual(2, len(visitor.tasks_started))
        self.assertTrue(n1 in visitor.tasks_started)
        self.assertTrue(n2 in visitor.tasks_started)
        
        self.assertEqual(2, len(visitor.tasks_ended))
        self.assertTrue(n1 in visitor.tasks_ended)
        self.assertTrue(visitor.tasks_ended in n2)
        
        self.assertEqual(0, len(visitor.projects_started))
        self.assertEqual(0, len(visitor.folders_started))
        self.assertEqual(0, len(visitor.contexts_started))
dataset/ETHPy150Open psidnell/ofexport/src/test/python/treemodel_test.py/Test_treemodel.test_traverse_list_tasks/swapped operands of `in`