From 23f99e98c4cf97891202847f3384a35b6fc57e7c Mon Sep 17 00:00:00 2001 From: Joakim Uddholm Date: Tue, 14 Jun 2016 21:33:51 +0200 Subject: [PATCH] is_gzipped: Separated tests again. --- tests/test_utils_gz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils_gz.py b/tests/test_utils_gz.py index a9bd29bae..2b47bf8da 100644 --- a/tests/test_utils_gz.py +++ b/tests/test_utils_gz.py @@ -29,10 +29,12 @@ class GunzipTest(unittest.TestCase): text = gunzip(f.read()) assert text.endswith(b'') - def test_is_gzipped_right(self): + def test_is_x_gzipped_right(self): hdrs = Headers({"Content-Type": "application/x-gzip"}) r1 = Response("http://www.example.com", headers=hdrs) self.assertTrue(is_gzipped(r1)) + + def test_is_gzipped_right(self): hdrs = Headers({"Content-Type": "application/gzip"}) r1 = Response("http://www.example.com", headers=hdrs) self.assertTrue(is_gzipped(r1))