def test_basicLiteralEmit(self):
        """
        Verify that the command dictionaries for a callRemoteN look correct
        after being serialized and parsed.
        """
        c, s, p = connectedServerAndClient()
        L = []
        s.ampBoxReceived = L.append
        c.callRemote(Hello, hello=b'hello test', mixedCase=b'mixed case arg test',
                     dash_arg=b'x', underscore_arg=b'y')
        p.flush()
        self.assertEqual(len(L), 1)
        for k, v in [(b'_command', Hello.commandName),
                     (b'hello', b'hello test'),
                     (b'mixedCase', b'mixed case arg test'),
                     (b'dash-arg', b'x'),
                     (b'underscore_arg', b'y')]:
            self.assertEqual(L[-1].pop(k), v)
        L[-1].pop(b'_ask')
        self.assertEqual(L[-1], {})

        Verify that the command dictionaries for a callRemoteN look correct
        after being serialized and parsed.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py