def test_helloWorldUnicode(self):
        """
        Verify that unicode arguments can be encoded and decoded.
        """
        c, s, p = connectedServerAndClient(
            ServerClass=SimpleSymmetricCommandProtocol,
            ClientClass=SimpleSymmetricCommandProtocol)
        L = []
        HELLO = b'world'
        HELLO_UNICODE = u'wor\u1234ld'
        c.sendUnicodeHello(HELLO, HELLO_UNICODE).addCallback(L.append)
        p.flush()
        self.assertEqual(L[0]['hello'], HELLO)
        self.assertEqual(L[0]['Print'], HELLO_UNICODE)

        Verify that unicode arguments can be encoded and decoded.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py