def test_ampListCommand(self):
        """
        Test encoding of an argument that uses the AmpList encoding.
        """
        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)

        Test encoding of an argument that uses the AmpList encoding.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py