Merge branch 'merge-no-commit'
[git-cola.git] / test / models_selection_test.py
blob6ccf2fd51732d0ab3496f093cf794f352b17e124
1 import unittest
3 import cola.models.selection as selection
6 class T(object):
7 pass
10 class SelectionTestCase(unittest.TestCase):
12 def test_union(self):
13 t = T()
14 t.staged = ['a']
15 t.unmerged = ['a', 'b']
16 t.modified = ['b', 'a', 'c']
17 t.untracked = ['d']
19 expect = ['a', 'b', 'c', 'd']
20 actual = selection.union(t)
21 self.assertEqual(expect, actual)
24 if __name__ == '__main__':
25 unittest.main()