Renamed dummyserver to testserver

This commit is contained in:
Braulio Valdivielso Martínez
2015-11-25 14:05:21 +01:00
parent b806ce15ba
commit 47e96c4e57
4 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ from requests.structures import CaseInsensitiveDict
from requests.sessions import SessionRedirectMixin
from requests.models import urlencode
from requests.hooks import default_hooks
from dummyserver.server import Server
from testserver.server import Server
import socket
try:
@@ -1738,7 +1738,7 @@ def test_vendor_aliases():
with pytest.raises(ImportError):
from requests.packages import webbrowser
class TestDummyServer(unittest.TestCase):
class TestTestServer(unittest.TestCase):
def test_basic(self):
question = b"sucess?"
answer = b"yeah, success"
Binary file not shown.
@@ -2,11 +2,8 @@
import threading, socket
class Server(threading.Thread):
""" Dummy server using for unit testing """
""" Basic socket server used for unit testing """
def __init__(self, handler, host='localhost', port=8021):
threading.Thread.__init__(self)