def _doesnt_overfill_test(self, factory):
    '\n        Assert that if there are more bytes available to be read from the\n        receive buffer than would fit into the buffer passed to\n        `Connection.recv_into`, only as many as fit are written into it.\n        '
    output_buffer = factory(5)
    (server, client) = loopback()
    server.send(b'abcdefghij')
    assert (client.recv_into(output_buffer) == 5)
    assert (output_buffer == bytearray(b'abcde'))
    rest = client.recv(5)
    assert (b'fghij' == rest)
Assert that if there are more bytes available to be read from the
receive buffer than would fit into the buffer passed to
`Connection.recv_into`, only as many as fit are written into it.
def _doesnt_overfill_test(self, factory):
    '\n        Assert that if there are more bytes available to be read from the\n        receive buffer than would fit into the buffer passed to\n        `Connection.recv_into`, only as many as fit are written into it.\n        '
    output_buffer = factory(5)
    (server, client) = loopback()
    server.send(b'abcdefghij')
    assert (client.recv_into(output_buffer) == 5)
    assert (output_buffer == bytearray(b'abcde'))
    rest = client.recv(5)
    assert (b'fghij' == rest)