def test_key_setup(self, cipher_name, module, key_bytes, mode):
        self.announce_start((cipher_name,) % "%s key setup")

        # Generate random keys for use with the tests
        keys = self.random_keys(key_bytes)

        # Perform key setups
        if mode is None:
            t0 = time.time()
            for k in keys:
                module.new(k)
            t = time.time()
        else:
            t0 = time.time()
            for k in keys:
                module.new(k, module.MODE_ECB)
            t = time.time()

        key_setups_per_second = len(keys) / (t - t0)
        self.announce_result(key_setups_per_second/1000, "kKeys/sec")
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pycrypto-2.6.1/pct-speedtest.py/Benchmark.test_key_setup/swapped operands of `%`