def setUp(self): self.auth = create_auth() self.listener = MockStreamListener(self) self.stream = Stream(self.auth, self.listener, timeout=3.0)
def setUp(self): self.api = API(create_auth()) self.api.retry_count = 2 self.api.retry_delay = 5
def setUp(self): self.api = API(create_auth()) self.api.retry_count = 2 self.api.retry_delay = 5 self.api.retry_errors = set([401, 404, 503]) self.api.wait_on_rate_limit = True
def setUp(self): self.api = API(create_auth())