Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TAlone
memopol
Commits
4ab9da5e
Commit
4ab9da5e
authored
Jun 28, 2016
by
Nicolas Joyard
Browse files
Force sort order in position test
parent
e5a01f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
representatives_positions/tests/test_functional.py
View file @
4ab9da5e
...
...
@@ -34,7 +34,8 @@ class PositionTest(TestCase):
assert
response
[
'Location'
]
==
expected
result
=
Position
.
objects
.
get
(
text
=
'%stext'
%
self
.
id
())
assert
list
(
result
.
tags
.
values_list
(
'name'
,
flat
=
True
))
==
self
.
tags
assert
list
(
result
.
tags
.
order_by
(
'pk'
).
values_list
(
'name'
,
flat
=
True
))
==
self
.
tags
assert
result
.
datetime
==
datetime
.
date
(
2015
,
12
,
11
)
assert
result
.
link
==
self
.
fixture
[
'link'
]
assert
result
.
representative
.
pk
==
self
.
mep
.
pk
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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