'L{client._RetryingHTTP11ClientProtocol} retries when
L{client._RetryingHTTP11ClientProtocol._shouldRetry} returns C{True}.'

def test_retryIfShouldRetryReturnsTrue(self):

    (d, protocols) = self.retryAttempt(True)
    self.assertEqual(len(protocols), 2)
    response = object()
    protocols[1].requests[0][1].callback(response)
    return d.addCallback(self.assertIdentical, response)
