Fixed internal redirects
Tests for unicode_content inside response

Tested unicode_content value whether charset is set or not.

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Helper function to mock responses
PEP8 fixes
Fixed doc reference
Improving HttpProxyResponse tests

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Tests for unicode_content inside response

Tested unicode_content value whether charset is set or not.

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Tests for unicode_content inside response

Tested unicode_content value whether charset is set or not.

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Test for location header

Using BytesIO instead of StringIO to mock content due to the unicode
need of the latter
Tests for charset in Content-Type
Refactoring tests for charset

Added response factory as a parameter to patcher so that it returns
proxy response instead of a magic mock
Tested location replacement
Tested secure remote host replacement
Fixed some PEP8 warnings