cfgactions: use proc.kill instead of SLOT('kill()')
[git-cola.git] / test / models_selection_test.py
blob0decfa40fd328e5e59596893a961d0b0fc18b968
1 from __future__ import absolute_import, division, unicode_literals
3 import unittest
5 import cola.models.selection as selection
8 class T(object):
9 pass
12 class SelectionTestCase(unittest.TestCase):
14 def test_union(self):
15 t = T()
16 t.staged = ['a']
17 t.unmerged = ['a', 'b']
18 t.modified = ['b', 'a', 'c']
19 t.untracked = ['d']
21 expect = ['a', 'b', 'c', 'd']
22 actual = selection.union(t)
23 self.assertEqual(expect, actual)
26 if __name__ == '__main__':
27 unittest.main()