tests/test_treeview.py
changeset 38 c6e170452c7f
parent 37 54dd866b8951
equal deleted inserted replaced
37:54dd866b8951 38:c6e170452c7f
    22         # └ b
    22         # └ b
    23 
    23 
    24         """
    24         """
    25         self.model = TreeModel()
    25         self.model = TreeModel()
    26         self.model.add('/',  ['a', 'b'])
    26         self.model.add('/',  ['a', 'b'])
    27         self.model.add('/a', [TreeNode('c'), TreeNode('d')])
    27         self.model.add(['a'], [TreeNode('c'), TreeNode('d')])
    28         self.model.add((0,1), ['e', TreeNode('f')])
    28         self.model.add((0,1), ['e', TreeNode('f')])
    29         self.model.add([0,1,0], 'g')
    29         self.model.add([0,1,0], 'g')
    30         self.model.add('/a/d/f', TreeNode('h'))
    30         self.model.add('/a/d/f', TreeNode('h'))
    31 
    31 
    32     def test_treeiter(self):
    32     def test_treeiter(self):