def _CheckCounters(self, baseline, expected_gets, expected_puts):
    # Method used in a few tests to help verify performance counters.
    baseline_gets, baseline_puts = baseline
    new_gets, new_puts = self._GetCounters()
    self.assertEqual(new_gets - baseline_gets, expected_gets)
    self.assertEqual(new_puts - baseline_puts, expected_puts)
    sample = self.meter.sample()
    elapsed = time.time() - self.meter_start
    self.assertGreater(sample.viewfinder.s3.secs_per_put, 0)
    self.meter_start += elapsed
dataset/ETHPy150Open viewfinderco/viewfinder/backend/storage/test/s3_object_store_test.py/S3ObjectStoreTestCase._CheckCounters/original