

def test_status_forcelist(self):
    retry = Retry(status_forcelist=xrange(500, 600))
    self.assertFalse(retry.is_forced_retry('GET', status_code=200))
    self.assertFalse(retry.is_forced_retry('GET', status_code=400))
    self.assertTrue(self.is_forced_retry('GET', status_code=500))
    retry = Retry(total=1, status_forcelist=[418])
    self.assertFalse(retry.is_forced_retry('GET', status_code=400))
    self.assertTrue(retry.is_forced_retry('GET', status_code=418))

dataset/ETHPy150Open shazow/urllib3/test/test_retry.py RetryTest.test_status_forcelist/VarMisuse@60/82 `retry`->`self`