Commit efc9ab0b authored by Denis Bilenko's avatar Denis Bilenko

rename greenio_test.py to test__greenio.py

--HG--
rename : greentest/greenio_test.py => greentest/test__greenio.py
parent f71757f3
...@@ -55,7 +55,7 @@ class TestGreenIo(TestCase): ...@@ -55,7 +55,7 @@ class TestGreenIo(TestCase):
listener.close() listener.close()
def did_it_work(server): def did_it_work(server):
client = socket.connect_tcp(('127.0.0.1', server.getsockname()[1])) client = socket.create_connection(('127.0.0.1', server.getsockname()[1]))
fd = client.makefile() fd = client.makefile()
client.close() client.close()
assert fd.readline() == 'hello\n' assert fd.readline() == 'hello\n'
...@@ -90,7 +90,7 @@ class TestGreenIo(TestCase): ...@@ -90,7 +90,7 @@ class TestGreenIo(TestCase):
listener.close() listener.close()
server = socket.tcp_listener(('0.0.0.0', 0)) server = socket.tcp_listener(('0.0.0.0', 0))
killer = gevent.spawn(accept_once, server) killer = gevent.spawn(accept_once, server)
client = socket.connect_tcp(('127.0.0.1', server.getsockname()[1])) client = socket.create_connection(('127.0.0.1', server.getsockname()[1]))
fd = client.makefile() fd = client.makefile()
client.close() client.close()
assert fd.read() == 'hello\n' assert fd.read() == 'hello\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment