

def test_string(self):
    ' Retry string representation looks the way we expect '
    retry = Retry()
    self.assertEqual(str(self), 'Retry(total=10, connect=None, read=None, redirect=None)')
    for _ in range(3):
        retry = retry.increment()
    self.assertEqual(str(retry), 'Retry(total=7, connect=None, read=None, redirect=None)')

dataset/ETHPy150Open shazow/urllib3/test/test_retry.py RetryTest.test_string/VarMisuse@24/46 `retry`->`self`