Fix test for new WebOb
In the change from WebOb 1.5.1 to 1.6.0, WebOb no longer adds a charset when the content-type is application/json. http://docs.webob.org/en/stable/whatsnew-1.6.html#bugfixes Change-Id: I78431f295e891ddaf38809d7de55a7195fb9432d
This commit is contained in:
parent
87a801fb1d
commit
dc963fc37b
|
@ -2242,8 +2242,8 @@ class TestScheduler(ZuulTestCase):
|
|||
headers = f.info()
|
||||
self.assertIn('Content-Length', headers)
|
||||
self.assertIn('Content-Type', headers)
|
||||
self.assertEqual(headers['Content-Type'],
|
||||
'application/json; charset=UTF-8')
|
||||
self.assertIsNotNone(re.match('^application/json(; charset=UTF-8)?$',
|
||||
headers['Content-Type']))
|
||||
self.assertIn('Access-Control-Allow-Origin', headers)
|
||||
self.assertIn('Cache-Control', headers)
|
||||
self.assertIn('Last-Modified', headers)
|
||||
|
|
Loading…
Reference in New Issue