Skip to content

Commit

Permalink
Fix logout test - missing asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Dec 8, 2015
1 parent 3c8262f commit ec6d5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/test_ngx_oauth_logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def test_logout(http):
resp = http.post('/_oauth/logout')

# then the response status should be 204,
resp.status_code == 204
assert resp.status_code == 204

# and all OAuth cookies should be gone.
assert len(http.cookies) == 0
Expand All @@ -23,7 +23,7 @@ def test_logout_using_get_method(http):
resp = http.get('/_oauth/logout')

# then the response status should be 405,
resp.status_code == 405
assert resp.status_code == 405

# and cookies should be still here.
assert len(http.cookies) == 3

0 comments on commit ec6d5a7

Please sign in to comment.