Skip to content
This repository has been archived by the owner on Apr 20, 2019. It is now read-only.

Commit

Permalink
cors on ping
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Apr 9, 2015
1 parent fd714d2 commit 4b14ab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_ping(self):
r = self.get('/v1/ping')
eq_(r.status_code, 200)
eq_(r.content, 'pong\n')
eq_(r.headers['Access-Control-Allow-Origin'], '*')

def test_404(self):
r = self.get('/gobblygook')
Expand Down Expand Up @@ -101,6 +102,7 @@ def test_post_ok(self):
]
}
)
eq_(r.headers['Access-Control-Allow-Origin'], '*')

def test_search_on_numbers(self):
r = self.post('/v1', {
Expand Down

0 comments on commit 4b14ab8

Please sign in to comment.