def testCachedRSAOperations(self):
    # First time fill the cache.
    self.SendToServer()
    self.client_communicator.RunOnce()
    self.CheckClientQueue()

    metric_value = stats.STATS.GetMetricValue("grr_rsa_operations")
    self.assertGreater(metric_value, 0)

    for _ in range(100):
      self.SendToServer()
      self.client_communicator.RunOnce()
      self.CheckClientQueue()

    # There should not have been any expensive operations any more
    self.assertEqual(stats.STATS.GetMetricValue("grr_rsa_operations"),
                     metric_value)
Test a default 3d LUT export
dataset/ETHPy150Open google/grr/grr/lib/communicator_test.py/HTTPClientTests.testCachedRSAOperations--crossover with--dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/abstract_lut_test.py/AbstractLUTTest.test_default_3d_lut