def test_has_url_if_queue_not_empty(self): urls = ['http://docs.python-guide.org/en/latest/writing/tests/'] queuesystem.storeUrlsToQueue(urls) self.assertEqual(queuesystem.hasNextUrl(), True) queuesystem.clearQueue()
def test_has_url_if_queue_empty(self): self.assertEqual(queuesystem.hasNextUrl(), False)