'Test encoding of an argument that uses the AmpList encoding.'

def test_ampListCommand(self):

    (c, s, p) = connectedServerAndClient(ServerClass=SimpleSymmetricCommandProtocol, ClientClass=SimpleSymmetricCommandProtocol)
    L = []
    c.callRemote(GetList, length=10).addCallback(L.append)
    p.flush()
    values = L.pop().get('body')
    self.assertEqual(values, ([{'x': 1}] * 10))
