[tests] implemented http feature according to test
authorBruno Wagner <bwgpro@gmail.com>
Thu, 23 Jul 2015 02:55:39 +0000 (23:55 -0300)
committerKali Kaneko <kali@leap.se>
Thu, 23 Jul 2015 20:16:36 +0000 (16:16 -0400)
commit5502318835626527d9818c360c7fd2b1a4b01145
tree0d50168ab691001be605a9d50e034064b20f34db
parent301be892a67f88b8b9479531003403a77b36a5f2
[tests] implemented http feature according to test

Two test cases were broken and were implemented here:

The first was that HTTPClient should share the connection between
clients if a pool was not passed explicitly. If you initialize an
HTTPClient without a pool, it will reuse a pool created on the class.

The second was that you should be able to pass to the HTTPCLient a pool
on initialization. Added that possibility and fixed the tests accordingly
src/leap/common/http.py
src/leap/common/tests/test_http.py