remotemessage: simplify implementation by leveraging VimTextEdit
[git-cola.git] / test / models_selection_test.py
blob041510a1b552e1a758f9739f54e94a38fbdb1329
1 from cola.models import selection
3 from .helper import Mock
6 def test_union():
7 t = Mock()
8 t.staged = ['a']
9 t.unmerged = ['a', 'b']
10 t.modified = ['b', 'a', 'c']
11 t.untracked = ['d']
13 expect = ['a', 'b', 'c', 'd']
14 actual = selection.union(t)
15 assert expect == actual