def testCompression(self):
    with test_lib.ConfigOverrider({
        "Network.compression": "UNCOMPRESSED"}):
      self.testCommunications()
      uncompressed_len = len(self.cipher_text)

    # If the client compresses, the server should still be able to
    # parse it:
    with test_lib.ConfigOverrider({
        "Network.compression": "ZCOMPRESS"}):
      self.testCommunications()
      compressed_len = len(self.cipher_text)

      self.assertLess(compressed_len, uncompressed_len)

    # If we chose a crazy compression scheme, the client should not
    # compress.
    with test_lib.ConfigOverrider({
        "Network.compression": "SOMECRAZYCOMPRESSION"}):
      self.testCommunications()
      compressed_len = len(self.cipher_text)

      self.assertEqual(compressed_len, uncompressed_len)
Returns the performances calculated so far. They are stored inside
dataset/ETHPy150Open google/grr/grr/lib/communicator_test.py/ClientCommsTest.testCompression--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/gridsearch.py/GridSearch2D.getPerformances