def test_main(self): compression.init_all() assert compression.use("zlib") assert compression.get_compression_caps() assert compression.get_enabled_compressors() for x in compression.get_enabled_compressors(): assert compression.get_compressor(x)
def enable_compressor(self, compressor): self._compress = compression.get_compressor(compressor) self.compressor = compressor log("enable_compressor(%s): %s", compressor, self._compress)
def enable_compressor(self, compressor): self._compress = compression.get_compressor(compressor) self.compressor = compressor log("enable_compressor(%s): %s", compressor, self._compress)