'Verify that the command dictionaries for a callRemoteN look correct
after being serialized and parsed.'

def test_basicLiteralEmit(self):

    (c, s, p) = connectedServerAndClient()
    L = []
    s.ampBoxReceived = L.append
    c.callRemote(Hello, hello='hello    test', mixedCase='mixed    case    arg    test', dash_arg='x', underscore_arg='y')
    p.flush()
    self.assertEqual(len(L), 1)
    for (k, v) in [('_command', Hello.commandName), ('hello', 'hello    test'), ('mixedCase', 'mixed    case    arg    test'), ('dash-arg', 'x'), ('underscore_arg', 'y')]:
        self.assertEqual(L[(-1)].pop(k), v)
    L[(-1)].pop('_ask')
    self.assertEqual(L[(-1)], {})
