Wrote unit tests and found and fixed bugs

This commit is contained in:
Lonami
2016-08-30 13:11:19 +02:00
parent 557ec70237
commit e712a9bf61
6 changed files with 159 additions and 32 deletions

View File

@@ -21,4 +21,4 @@ class TcpClient:
def read(self, buffer_size):
"""Reads (receives) the specified bytes from the connected peer"""
self.socket.recv(buffer_size)
return self.socket.recv(buffer_size)