def test_retry_both_specified(self):
        error = ConnectTimeoutError()
        retry = Retry(connect=3, total=2)
        retry = retry.increment(error=error)
        retry = retry.increment(error=error)
        try:
            retry.increment(error=error)
            self.fail("Failed to raise error.")
        except MaxRetryError as e:
            self.assertEqual(e.reason, error)
Create a Codelet instance.
dataset/ETHPy150Open shazow/urllib3/test/test_retry.py/RetryTest.test_retry_both_specified--crossover with--dataset/ETHPy150Open earwig/bitshift/bitshift/codelet.py/Codelet.__init__