':py:obj:`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):

    (server, client) = self._loopback()
    with catch_warnings(record=True) as w:
        simplefilter('always')
        server.sendall('x'.decode('ascii'))
        self.assertEqual('{0}    for    buf    is    no    longer    accepted,    use    bytes'.format(WARNING_TYPE_EXPECTED), str(w[(-1)].message))
        self.assertIs(w[(-1)].category, DeprecationWarning)
    self.assertEquals(client.recv(1), 'x')
