equal
deleted
inserted
replaced
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 |