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

Commit

Permalink
Add test for no-cache header
Browse files Browse the repository at this point in the history
  • Loading branch information
hedleyroos committed Feb 5, 2014
1 parent adaa3f5 commit abcec14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions devproxy/tests/test_proxy.py
Expand Up @@ -55,3 +55,11 @@ def test_debug_info(self):
resp = yield http.request('%s/_debug' % (url,), method='GET')
self.assertTrue('debugfoo' in resp.delivered_body)
self.assertTrue('debugbar' in resp.delivered_body)

@inlineCallbacks
def test_health_resource(self):
proxy, url = self.start_proxy(self.debug_handlers)
resp = yield http.request('%s/_health' % (url,), method='GET')
self.assertTrue('OK' in resp.delivered_body)
header = resp.headers.getRawHeaders('Cache-Control')[0]
self.assertEquals(header, 'no-cache')

0 comments on commit abcec14

Please sign in to comment.