@skip_if_py3
def test_short_buffer(self):
    '\n        When passed a buffer containing a small number of bytes,\n        `Connection.send` transmits all of them and returns the number\n        of bytes sent.\n        '
    (server, client) = loopback()
    count = server.send(buffer(b'xy'))
    assert (count == 2)
    assert (client.recv(2) == b'xy')
When passed a buffer containing a small number of bytes,
`Connection.send` transmits all of them and returns the number
of bytes sent.
@skip_if_py3
def test_short_buffer(self):
    '\n        When passed a buffer containing a small number of bytes,\n        `Connection.send` transmits all of them and returns the number\n        of bytes sent.\n        '
    (server, client) = loopback()
    count = server.send(buffer(b'xy'))
    assert (count == 2)
    assert (client.recv(2) == b'xy')