

def testModerate__expected_duration_is_20_seconds(self):
    cnt = 100
    tt = send_at_rate(10, 5, cnt)
    print(('send_at_rate(10, 5, %s) --> %s' % (cnt, str(tt))))
    actRate = (cnt / timePeriodSeconds(tt))
    self.assertGreater(10, actRate)

dataset/ETHPy150Open godaddy/Thespian/thespian/system/test/test_ratelimit.py TestRateLimit.testModerate__expected_duration_is_20_seconds/original