Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
d646eda9
Commit
d646eda9
authored
Oct 12, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare sorted lists.
parent
fd52d3fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
test/TodoListTest.py
test/TodoListTest.py
+8
-8
No files found.
test/TodoListTest.py
View file @
d646eda9
...
...
@@ -166,23 +166,23 @@ class TodoListDependencyTester(unittest.TestCase):
def
test_check_dep
(
self
):
children
=
self
.
todolist
.
children
(
1
)
self
.
assertEqual
(
[
todo
.
source
()
for
todo
in
children
]
,
\
[
'Bar p:1'
,
'Baz p:1 id:2'
,
'Buzz p:2'
]
)
self
.
assertEqual
(
sorted
([
todo
.
source
()
for
todo
in
children
])
,
\
sorted
([
'Bar p:1'
,
'Baz p:1 id:2'
,
'Buzz p:2'
])
)
children
=
self
.
todolist
.
children
(
1
,
True
)
self
.
assertEqual
(
[
todo
.
source
()
for
todo
in
children
]
,
\
[
'Bar p:1'
,
'Baz p:1 id:2'
]
)
self
.
assertEqual
(
sorted
([
todo
.
source
()
for
todo
in
children
])
,
\
sorted
([
'Bar p:1'
,
'Baz p:1 id:2'
])
)
children
=
self
.
todolist
.
children
(
3
)
self
.
assertEqual
(
[
todo
.
source
()
for
todo
in
children
]
,
\
self
.
assertEqual
(
sorted
([
todo
.
source
()
for
todo
in
children
])
,
\
[
'Buzz p:2'
])
parents
=
self
.
todolist
.
parents
(
4
)
self
.
assertEqual
(
[
todo
.
source
()
for
todo
in
parents
]
,
\
[
'Foo id:1'
,
'Baz p:1 id:2'
]
)
self
.
assertEqual
(
sorted
([
todo
.
source
()
for
todo
in
parents
])
,
\
sorted
([
'Foo id:1'
,
'Baz p:1 id:2'
])
)
parents
=
self
.
todolist
.
parents
(
4
,
True
)
self
.
assertEqual
(
[
todo
.
source
()
for
todo
in
parents
]
,
\
self
.
assertEqual
(
sorted
([
todo
.
source
()
for
todo
in
parents
])
,
\
[
'Baz p:1 id:2'
])
self
.
assertEqual
(
self
.
todolist
.
children
(
2
),
[])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment