Skip to content

Commit

Permalink
check that expected AC-Allow-Credentials=true in fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
treerao committed Jul 28, 2015
1 parent bff02a7 commit e3e3f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cornice/tests/test_cors.py
Expand Up @@ -238,6 +238,8 @@ def test_origin_is_not_wildcard_if_allow_credentials(self):
})
self.assertEqual(resp.headers['Access-Control-Allow-Origin'],
'lolnet.org')
self.assertEqual(resp.headers['Access-Control-Allow-Credentials'],
'true')

def test_responses_include_an_allow_origin_header(self):
resp = self.app.get('/squirel', headers={'Origin': 'notmyidea.org'})
Expand Down

0 comments on commit e3e3f09

Please sign in to comment.