def test_text(self):
    '\n        `Connection.sendall` transmits all the content in the string passed\n        to it, raising a DeprecationWarning in case of this being a text.\n        '
    (server, client) = loopback()
    with pytest.warns(DeprecationWarning) as w:
        simplefilter('always')
        server.sendall(b'x'.decode('ascii'))
        assert ('{0} for buf is no longer accepted, use bytes'.format(WARNING_TYPE_EXPECTED) == str(w[(- 1)].message))
    assert (client.recv(1) == b'x')
`Connection.sendall` transmits all the content in the string passed
to it, raising a DeprecationWarning in case of this being a text.
def test_text(self):
    '\n        `Connection.sendall` transmits all the content in the string passed\n        to it, raising a DeprecationWarning in case of this being a text.\n        '
    (server, client) = loopback()
    with pytest.warns(DeprecationWarning) as w:
        simplefilter('always')
        server.sendall(b'x'.decode('ascii'))
        assert ('{0} for buf is no longer accepted, use bytes'.format(WARNING_TYPE_EXPECTED) == str(w[(- 1)].message))
    assert (client.recv(1) == b'x')