tests/test_treeview.py
changeset 19 5e78d52ebb24
parent 11 762513aacc87
child 37 54dd866b8951
equal deleted inserted replaced
18:e6c3a5ee91aa 19:5e78d52ebb24
     1 #!/usr/bin/env python3
     1 #!/usr/bin/env python3
       
     2 
       
     3 import sys
       
     4 sys.path.append('..')
     2 
     5 
     3 from tuikit.treeview import *
     6 from tuikit.treeview import *
     4 import unittest
     7 import unittest
       
     8 
     5 
     9 
     6 class TestTreeView(unittest.TestCase):
    10 class TestTreeView(unittest.TestCase):
     7     def test_treemodel(self):
    11     def test_treemodel(self):
     8         '''Build tree model, iterate through the tree, test result.'''
    12         '''Build tree model, iterate through the tree, test result.'''
     9         # build tree model
    13         # build tree model
    30         self.assertEqual(res, '112a212c222d312e411g322f411h122b')
    34         self.assertEqual(res, '112a212c222d312e411g322f411h122b')
    31 
    35 
    32 
    36 
    33 if __name__ == '__main__':
    37 if __name__ == '__main__':
    34     unittest.main()
    38     unittest.main()
       
    39