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

        assert 'application/x-brotli' in compression.encoders()
Пример #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)
Пример #4
0
 def test_encoders__gzip(self):
     assert 'application/x-gzip' in compression.encoders()
Пример #5
0
 def test_encoders__bz2(self):
     assert 'application/x-bz2' in compression.encoders()
Пример #6
0
 def test_encoders__bz2(self):
     assert "application/x-bz2" in compression.encoders()
Пример #7
0
 def test_encoders__gzip(self):
     self.assertIn('application/x-gzip', compression.encoders())
Пример #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)
Пример #9
0
 def test_encoders__gzip(self):
     self.assertIn("application/x-gzip", compression.encoders())
Пример #10
0
 def test_encoders__bz2(self):
     self.assertIn("application/x-bz2", compression.encoders())
Пример #11
0
    def test_encoders__zstd(self):
        pytest.importorskip('zstandard')

        assert 'application/zstd' in compression.encoders()
Пример #12
0
    def test_encoders__backports_lzma(self):
        pytest.importorskip('backports.lzma')

        assert 'application/x-lzma' in compression.encoders()
Пример #13
0
    def test_encoders__brotli(self):
        pytest.importorskip('brotli')

        assert 'application/x-brotli' in compression.encoders()
Пример #14
0
    def test_encoders__lzma(self):
        pytest.importorskip('lzma')

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

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