Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
5a7dcc3d
Commit
5a7dcc3d
authored
Jun 15, 2016
by
HERBERT Ryan
Browse files
tests/patient.py alternate order of assertions because permission is now given by default
parent
a853dacf
Changes
1
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/tests/controllers/patient.py
View file @
5a7dcc3d
...
...
@@ -109,10 +109,10 @@ class PatientController(unittest.TestCase):
request
.
vars
[
"group_id"
]
=
fake_group_id
resp
=
change_permission
()
self
.
assert
Tru
e
(
auth
.
get_group_access
(
'patient'
,
patient_id
,
fake_group_id
),
"fail to
add
permission"
)
self
.
assert
Fals
e
(
auth
.
get_group_access
(
'patient'
,
patient_id
,
fake_group_id
),
"fail to
remove
permission"
)
resp
=
change_permission
()
self
.
assert
Fals
e
(
auth
.
get_group_access
(
'patient'
,
patient_id
,
fake_group_id
),
"fail to
remove
permission"
)
self
.
assert
Tru
e
(
auth
.
get_group_access
(
'patient'
,
patient_id
,
fake_group_id
),
"fail to
add
permission"
)
...
...
Write
Preview
Supports
Markdown
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