Skip to content

Commit

Permalink
Update tests for test-server 0.0.31
Browse files Browse the repository at this point in the history
Closes Anorov#117
  • Loading branch information
jayvdb committed Dec 4, 2019
1 parent c2fa43c commit 983f045
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
six
test_server==0.0.27
test_server==0.0.31
psutil
pytest
pylint
Expand Down
4 changes: 2 additions & 2 deletions test/test_pysocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ def setUpClass(cls):
from test_server import TestServer

cls.test_server = TestServer(address=TEST_SERVER_HOST,
port=TEST_SERVER_PORT,
engine='subprocess')
port=TEST_SERVER_PORT)
cls.test_server.start()

@classmethod
Expand Down Expand Up @@ -112,6 +111,7 @@ def assert_proxy_response(self, resp_data, content, address,
self.test_server.request['headers']['user-agent'])
self.assertEqual('%s:%d' % address,
self.test_server.request['headers']['host'])
content = b'3\r\n' + content + b'\r\n0'
self.assertEqual(content, resp_body)
self.assertEqual(client_ip or PROXY_HOST_IP,
self.test_server.request['client_ip'])
Expand Down

0 comments on commit 983f045

Please sign in to comment.