Skip to content

Commit

Permalink
test requests_per_minute property
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejs committed Nov 9, 2010
1 parent 05330d0 commit 94db2e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def test_get(self):
def test_request_throttling(self):
requests = 0
s = scrapelib.Scraper(requests_per_minute=30)
self.assertEqual(s.requests_per_minute, 30)

begin = time.time()
while time.time() <= (begin + 1):
Expand Down

0 comments on commit 94db2e1

Please sign in to comment.