util: add docstrings

This commit is contained in:
Roman Zeyde
2016-02-19 11:34:20 +02:00
parent 2ebefff909
commit c49514754b
2 changed files with 15 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ class FakeSocket(object):
def test_send_recv():
s = FakeSocket()
util.send(s, b'123')
util.send(s, data=[42], fmt='B')
util.send(s, b'*')
assert s.buf.getvalue() == b'123*'
s.buf.seek(0)