def testServiceCounters(self):
    self._CheckCounters(0, 0)
    for i in range(5):
      self._SendRequest('query_notifications', self._cookie, {})
      self.assertRaisesHttpError(400, self._SendRequest, 'query_notifications', self._cookie, {'start_key': 2})

    self._CheckCounters(10, 5)
    self._CheckCounters(0, 0)
Verify the requests per second and failures per second performance counters.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/service_counters_test.py/ServiceCountersTestCase.testServiceCounters