is_gzipped: Separated tests again.

This commit is contained in:
Joakim Uddholm 2016-06-14 21:33:51 +02:00
parent 36928d897c
commit 23f99e98c4
1 changed files with 3 additions and 1 deletions

View File

@ -29,10 +29,12 @@ class GunzipTest(unittest.TestCase):
text = gunzip(f.read())
assert text.endswith(b'</html>')
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))