repo.or.cz
/
git-cola.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remotemessage: simplify implementation by leveraging VimTextEdit
[git-cola.git]
/
test
/
models_selection_test.py
blob
041510a1b552e1a758f9739f54e94a38fbdb1329
1
from
cola
.
models
import
selection
2
3
from
.
helper
import
Mock
4
5
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'
]
12
13
expect
= [
'a'
,
'b'
,
'c'
,
'd'
]
14
actual
=
selection
.
union
(
t
)
15
assert
expect
==
actual