def test_encoders__bz2(self): pytest.importorskip('bz2') assert 'application/x-bz2' in compression.encoders()
def test_encoders__brotli(self): pytest.importorskip('brotli') assert 'application/x-brotli' in compression.encoders()
def test_encoders(self): encoders = compression.encoders() self.assertIn('application/x-gzip', encoders) if self.has_bzip2: self.assertIn('application/x-bz2', encoders)
def test_encoders__gzip(self): assert 'application/x-gzip' in compression.encoders()
def test_encoders__bz2(self): assert 'application/x-bz2' in compression.encoders()
def test_encoders__bz2(self): assert "application/x-bz2" in compression.encoders()
def test_encoders__gzip(self): self.assertIn('application/x-gzip', compression.encoders())
def test_encoders__gzip(self): self.assertIn("application/x-gzip", compression.encoders())
def test_encoders__bz2(self): self.assertIn("application/x-bz2", compression.encoders())
def test_encoders__zstd(self): pytest.importorskip('zstandard') assert 'application/zstd' in compression.encoders()
def test_encoders__backports_lzma(self): pytest.importorskip('backports.lzma') assert 'application/x-lzma' in compression.encoders()
def test_encoders__lzma(self): pytest.importorskip('lzma') assert 'application/x-lzma' in compression.encoders()
def test_encoders__bz2(self): self.assertIn('application/x-bz2', compression.encoders())
def test_encoders__gzip(self): assert "application/x-gzip" in compression.encoders()
def test_encoders(self): encoders = compression.encoders() self.assertIn("application/x-gzip", encoders) self.assertIn("application/x-bz2", encoders)