Add working tests, can shutdown conn and pool

This commit is contained in:
Don Brown
2014-01-27 22:36:36 -07:00
parent 6796331dc5
commit 5e603ec8a9
11 changed files with 724 additions and 10 deletions

View File

@@ -48,6 +48,11 @@ class Connection:
return connection
@asyncio.coroutine
def disconnect(self):
if self.transport:
return self.transport.close()
@property
def transport(self):
""" The transport instance that the protocol is currently using. """