def test_newStyleWithKeywords(self):
        """
        Create a new style object with keywords,
        send it over the wire, and check the result.
        """
        orig = NewStyleCopy("value1")
        d = self.ref.callRemote("echoWithKeywords", orig,
                                keyword1="one", keyword2="two")
        self.pump.flush()
        def cb(res):
            self.assertIsInstance(res, tuple)
            self.assertIsInstance(res[0], NewStyleCopy)
            self.assertIsInstance(res[1], dict)
            self.assertEqual(res[0].s, "value1")
            self.assertIsNot(res[0], orig)
            self.assertEqual(res[1], {"keyword1": "one", "keyword2": "two"})
        d.addCallback(cb)
        return d

        Create a new style object with keywords,
        send it over the wire, and check the result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/test/test_pb.py