@@ -0,0 +1,1712 @@
+from tempfile import NamedTemporaryFile%0A%0Afrom typhon.files import compress, decompress%0A%0A%0Aclass TestCompression:%0A    data = %22ABCDEFGHIJKLMNOPQRSTUVWXYZ12345678910%22%0A%0A    def create_file(self, filename):%0A        with open(filename, %22w%22) as file:%0A            file.write(self.data)%0A%0A    def check_file(self, filename):%0A        with open(filename) as file:%0A            return self.data == file.readline()%0A%0A    def test_compress_decompress_zip(self):%0A        with NamedTemporaryFile() as file:%0A            with compress(file.name+%22.zip%22) as compressed_file:%0A                self.create_file(compressed_file)%0A%0A            with decompress(file.name+%22.zip%22) as uncompressed_file:%0A                assert self.check_file(uncompressed_file)%0A%0A    def test_compress_decompress_gzip(self):%0A        with NamedTemporaryFile() as file:%0A            with compress(file.name+%22.gz%22) as compressed_file:%0A                self.create_file(compressed_file)%0A%0A            with decompress(file.name+%22.gz%22) as uncompressed_file:%0A                assert self.check_file(uncompressed_file)%0A%0A    def test_compress_decompress_bz2(self):%0A        with NamedTemporaryFile() as file:%0A            with compress(file.name+%22.bz2%22) as compressed_file:%0A                self.create_file(compressed_file)%0A%0A            with decompress(file.name+%22.bz2%22) as uncompressed_file:%0A                assert self.check_file(uncompressed_file)%0A%0A    def test_compress_decompress_lzma(self):%0A        with NamedTemporaryFile() as file:%0A            with compress(file.name+%22.xz%22) as compressed_file:%0A                self.create_file(compressed_file)%0A%0A            with decompress(file.name+%22.xz%22) as uncompressed_file:%0A                assert self.check_file(uncompressed_file)

Add tests for compression and decompression functions