Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
add a regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Dec 13, 2014
1 parent 3c96b91 commit 68af1a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/py/test_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ def test_sign_out_overwrites_session_cookie(self):
assert response.code == 302
assert response.headers.cookie[SESSION].value == ''

def test_sign_out_doesnt_redirect_xhr(self):
self.make_participant('alice')
response = self.client.PxST('/sign-out.html', auth_as='alice',
HTTP_X_REQUESTED_WITH=b'XMLHttpRequest')
assert response.code == 200

def test_receipts_signed_in(self):
self.make_participant('alice', claimed_time='now')
self.db.run("INSERT INTO exchanges (id, participant, amount, fee) "
Expand Down

0 comments on commit 68af1a9

Please sign in to comment.