def test_gzip(self): encoded = compression.encode_gzip(self.text) self.assertNotEqual(self.text, encoded) decoded = compression.decode_gzip(encoded) self.assertEqual(self.text, decoded)