def test_short_bytes(self):
    '\n        When passed a short byte string, `Connection.send` transmits all of it\n        and returns the number of bytes sent.\n        '
    (server, client) = loopback()
    count = server.send(b'xy')
    assert (count == 2)
    assert (client.recv(2) == b'xy')
When passed a short byte string, `Connection.send` transmits all of it
and returns the number of bytes sent.
def test_short_bytes(self):
    '\n        When passed a short byte string, `Connection.send` transmits all of it\n        and returns the number of bytes sent.\n        '
    (server, client) = loopback()
    count = server.send(b'xy')
    assert (count == 2)
    assert (client.recv(2) == b'xy')