Added test case for issue #1791

This test will fail against python 3.x because the url string is too long.
If someone can give me a direction on how to fix this, I'll be fine finishing it. Should the login/password be striped in the request module or within the PipSession class ?