Example #1
0
 def test_encoders__bz2(self):
     pytest.importorskip('bz2')
     assert 'application/x-bz2' in compression.encoders()
Example #2
0
    def test_encoders__brotli(self):
        pytest.importorskip('brotli')

        assert 'application/x-brotli' in compression.encoders()
Example #3
0
 def test_encoders(self):
     encoders = compression.encoders()
     self.assertIn('application/x-gzip', encoders)
     if self.has_bzip2:
         self.assertIn('application/x-bz2', encoders)
Example #4
0
 def test_encoders__gzip(self):
     assert 'application/x-gzip' in compression.encoders()
 def test_encoders__bz2(self):
     assert 'application/x-bz2' in compression.encoders()
Example #6
0
 def test_encoders__bz2(self):
     assert "application/x-bz2" in compression.encoders()
Example #7
0
 def test_encoders__gzip(self):
     self.assertIn('application/x-gzip', compression.encoders())
Example #8
0
 def test_encoders(self):
     encoders = compression.encoders()
     self.assertIn('application/x-gzip', encoders)
     if self.has_bzip2:
         self.assertIn('application/x-bz2', encoders)
Example #9
0
 def test_encoders__gzip(self):
     self.assertIn("application/x-gzip", compression.encoders())
Example #10
0
 def test_encoders__bz2(self):
     self.assertIn("application/x-bz2", compression.encoders())
Example #11
0
    def test_encoders__zstd(self):
        pytest.importorskip('zstandard')

        assert 'application/zstd' in compression.encoders()
Example #12
0
    def test_encoders__backports_lzma(self):
        pytest.importorskip('backports.lzma')

        assert 'application/x-lzma' in compression.encoders()
Example #13
0
    def test_encoders__brotli(self):
        pytest.importorskip('brotli')

        assert 'application/x-brotli' in compression.encoders()
Example #14
0
    def test_encoders__lzma(self):
        pytest.importorskip('lzma')

        assert 'application/x-lzma' in compression.encoders()
Example #15
0
 def test_encoders__bz2(self):
     self.assertIn('application/x-bz2', compression.encoders())
Example #16
0
    def test_encoders__zstd(self):
        pytest.importorskip('zstandard')

        assert 'application/zstd' in compression.encoders()
Example #17
0
 def test_encoders__gzip(self):
     assert "application/x-gzip" in compression.encoders()
Example #18
0
 def test_encoders(self):
     encoders = compression.encoders()
     self.assertIn("application/x-gzip", encoders)
     self.assertIn("application/x-bz2", encoders)
Example #19
0
 def test_encoders(self):
     encoders = compression.encoders()
     self.assertIn("application/x-gzip", encoders)
     self.assertIn("application/x-bz2", encoders)