106
106
class TestToGzip(tests.TestCase):
108
108
def assertToGzip(self, chunks):
110
110
gzfromchunks = tuned_gzip.chunks_to_gzip(chunks)
112
112
self.assertEqual(gzfrombytes, gzfromchunks)
113
113
decoded = self.applyDeprecated(
114
114
symbol_versioning.deprecated_in((2, 3, 0)),
115
115
tuned_gzip.GzipFile, fileobj=StringIO(gzfromchunks)).read()
118
121
def test_single_chunk(self):
119
122
self.assertToGzip(['a modest chunk\nwith some various\nbits\n'])