Fix tests running for zuul

- Add Sphinx to test-requirements
- Add a venv environment to tox for zuul runner.
- Fix pep8 issue in tests.

Change-Id: I742802381e588790a86d00371829dc88d21c9e64
Added stackforge gitreview

Change-Id: Ic97c427c05bc5126454b018f2218ed13bd6f537d
Requires requests >= 2.3

There is a fix in requests v2.3 that means you don't need to use a real
httplib.Response object which the mocker relies heavily upon. That means
we need to require at least this version until we can get a fix.

Change-Id: Iff71628a33c39415ef92f04aa23bd82657bb71b5
Make compatible with requests 1.2

Stub out the httplib.HTTPResponse so that we can be compatible with
Requests < 2.3. We need this to be packaged in major systems that still
have older requests.

Change-Id: Ibec3cead76b7246a6987f9f3b3fef5df6bcc7bc8
Remove some github specific jobs

Remove Travis file, and links to travis buttons from readme.
Change homepage to the docs site, rather than personal github repo.

Change-Id: Ic6f279f9f243081c50b80a13ee1158dd181ff8cd
Add keystoneclient and novaclient tests to tox

We want to be able to test changes in requests-mock against some of our
consumers to ensure we don't break anyone.

Change-Id: I029c25d7274e0d7638d85cbf3dc6c42aad3a5463
Correctly set adapter to response.connection

The response.connection should be the adapter that the request went
through. This is important in some situations (requests-kerberos) where
the connection is reused by the auth plugin to send additional requests.

Change-Id: I87bf996e2edbfb29eba9b4000d976a49cbf6c8cc
Closes-Bug: #1358903
Remove old _Context object

This was moved in a previous commit but apparently not deleted from the
old location.

Change-Id: I8efe097772a7a9fbf084ed105a2e650d0f16a19e
Merge "Correctly set adapter to response.connection"
Merge "Remove some github specific jobs"
Don't use session.prepare_request

Session.prepare_request didn't exist until requests 2.0 which is newer
than our requirements specifies.

We don't really need this function, we can use the older version for
testing rather than increase our minimum required version.

Change-Id: Ia5a8c187e31b8f883e93d8086481f5e08d764bc7
Closes-Bug: #1361488
Lowercase scheme in regexp test

This works in requests 1.1 and 2.0 but it fails in the 1.2 series. It's
not something we should be too concerned about enforcing at the
requests-mock layer so just fix up the test.

Closes-Bug: #1361497
Change-Id: I8f30262ab3177d9e3d3644c083aed6031eeba78f
Add get_all to compatibility function

This is used in python 3 rather that the getheaders function that we
already stub out.

Change-Id: Ie147214a49fc744dd2ff1fc958c60547874d05d9
Closes-Bug: #1361527
Merge "Don't use session.prepare_request"
Create a tox env for requests v1.2.3

Requests 1.2.3 seems to be a real pain, it's right before the v2.0
cleanup and there have been a number of inconsistencies. Create a tox
environment for checking them, and we should really gate on this as
well.

Change-Id: I343b9b7124a6bfb8e1fb711a286b8a896f50fc7b
Merge "Add get_all to compatibility function"
Merge "Create a tox env for requests v1.2.3"
Allow interpreting a sent request as text and json

This will make it much easier to do matching on last_request and when
doing callbacks.

Change-Id: I705f28b925afdf92c417433375d0f99d36071a6b
Closes-Bug: #1361462
Don't use requests.Response object directly

In requests 1.2 Responses are assumed to always have a HTTPResponse
object and it tries to extract headers from it. We solved this in the
create_response function but we didn't use it in all our tests.

Always use create_response when creating a custom matcher response.

Change-Id: I979f74a64c6f5accf1b88dcc3e5e004131945dff
Closes-Bug: #1361515
Convert headers to bytes testing request_headers

In requests 1.2 and python 3 headers are bytes so we need to optionally
convert unicode text to bytes when testing that the request headers
match those being checked for.

Change-Id: I02dadc05dd5a93769da646686b938c2b26f6f267
Closes-Bug: #1361528