def test_traverse_folder (self):
        parent = Folder (name=u'p')
        n1 = Project (name=u'n1')
        n2 = Folder (name=u'n2')
        parent.children.append (n1)
        parent.children.append (n2)
        
        visitor = DemoVisitor ()
        traverse (visitor, parent)
        self.assertEqual(2, len(visitor.folders_started))
        self.assertEqual(1, len(visitor.projects_started))
        self.assertTrue(visitor.folders_started in parent)
        self.assertTrue(n1 in visitor.projects_started)
        self.assertTrue(n2 in visitor.folders_started)
        
        self.assertEqual(2, len(visitor.folders_ended))
        self.assertEqual(1, len(visitor.projects_ended))
        self.assertTrue(parent in visitor.folders_ended)
        self.assertTrue(n1 in visitor.projects_ended)
        self.assertTrue(n2 in visitor.folders_ended)
dataset/ETHPy150Open psidnell/ofexport/src/test/python/treemodel_test.py/Test_treemodel.test_traverse_folder/swapped operands of `in`