def test_text(self):
        server, client = self._loopback()
        with catch_warnings(record=True) as w:
            simplefilter("always")
            server.sendall(b"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), b"x")
Read UBC 3DTensor mesh model and generate 3D Tensor mesh model in simpeg
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/OpenSSL/test/test_ssl.py/ConnectionSendallTests.test_text--crossover with--dataset/ETHPy150Open simpeg/simpeg/SimPEG/Mesh/MeshIO.py/TensorMeshIO.readModelUBC