diff options
| author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-04-14 02:35:04 +0100 |
|---|---|---|
| committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-04-14 02:35:04 +0100 |
| commit | 0bfa09dfa0ec6a1474ba30d0e1f8aea832fbc1fc (patch) | |
| tree | 99dd1db9a07c82aafd61b3afb03d12e65e0d399d /test/unit/http.py | |
| parent | 58cc13ab291cac5b13462006e3feb780178ef5f3 (diff) | |
| download | unit-0bfa09dfa0ec6a1474ba30d0e1f8aea832fbc1fc.tar.gz unit-0bfa09dfa0ec6a1474ba30d0e1f8aea832fbc1fc.tar.bz2 | |
Tests: minor fixes and style.
Diffstat (limited to 'test/unit/http.py')
| -rw-r--r-- | test/unit/http.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/unit/http.py b/test/unit/http.py index 8aacf18b..13384dc8 100644 --- a/test/unit/http.py +++ b/test/unit/http.py @@ -279,12 +279,8 @@ class TestHTTP(TestUnit): def _parse_json(self, resp): headers = resp['headers'] - self.assertIn('Content-Type', headers, 'Content-Type header set') - self.assertEqual( - headers['Content-Type'], - 'application/json', - 'Content-Type header is application/json', - ) + self.assertIn('Content-Type', headers) + self.assertEqual(headers['Content-Type'], 'application/json') resp['body'] = json.loads(resp['body']) |
