

def assertRequestCount(self, num=1):
    requests = len(self.server.requests)
    if (requests > num):
        raise AssertionError(('More than %s request performed: %s' % (num, requests)))
    elif (requests < num):
        raise AssertionError(('Less than %s request performed' % num))

dataset/ETHPy150Open smartfile/client-python/tests.py TestServerTestCase.assertRequestCount/original