def test_optionalAmpListPresent(self):
        """
        Sanity check that optional AmpList arguments are processed normally.
        """
        c, s, p = connectedServerAndClient(
            ServerClass=SimpleSymmetricCommandProtocol,
            ClientClass=SimpleSymmetricCommandProtocol)
        L = []
        c.callRemote(DontRejectMe, magicWord=u'please',
                list=[{'name': u'foo'}]).addCallback(L.append)
        p.flush()
        response = L.pop().get('response')
        self.assertEqual(response, 'foo accepted')

        Sanity check that optional AmpList arguments are processed normally.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py