

def test_retry_higher_total_loses(self):
    ' A lower connect timeout than the total is honored '
    error = ConnectTimeoutError()
    retry = Retry(connect=2, total=3)
    retry = retry.increment(error=error)
    retry = retry.increment(error=error)
    self.assertRaises(MaxRetryError, retry.increment, error=error)

dataset/ETHPy150Open shazow/urllib3/test/test_retry.py RetryTest.test_retry_higher_total_loses/original