'L{client.RedirectAgent} behaves like L{client.Agent} if the response
doesn\'t contain a redirect.'

def test_noRedirect(self):

    deferred = self.agent.request('GET', 'http://example.com/foo')
    (req, res) = self.protocol.requests.pop()
    headers = http_headers.Headers()
    response = Response(('HTTP', 1, 1), 200, 'OK', headers, None)
    res.callback(response)
    self.assertEqual(0, len(self.protocol.requests))
    result = self.successResultOf(deferred)
    self.assertIdentical(response, result)
    self.assertIdentical(result.previousResponse, None)
