# Path: kiel/compression/gzip.py
# def compress(data):
# def decompress(data):


import json
import unittest
from kiel.compression import gzip



class GZipCompressionTests(unittest.TestCase):

    def test_compression_is_stable(self):
        data = json.dumps({"foo": "bar", "blee": "bloo", "dog": "cat"})
        data = data.encode("utf-8")

        data = gzip.compress(data)
        data = gzip.decompress(data)
        data = gzip.compress(data)

# Path: kiel/compression/gzip.py
# def compress(data):
# def decompress(data):


# Path: tests/compression/test_gzip.py
import json
import unittest
from kiel.compression import gzip




class GZipCompressionTests(unittest.TestCase):

    def test_compression_is_stable(self):
        data = json.dumps({"foo": "bar", "blee": "bloo", "dog": "cat"})
        data = data.encode("utf-8")

        data = gzip.compress(data)
        data = gzip.decompress(data)
        data = gzip.compress(data)

        data = gzip.decompress(data)