def test_newStyle(self):
        """
        Create a new style object, send it over the wire, and check the result.
        """
        orig = NewStyleCopy("value")
        d = self.ref.callRemote("echo", orig)
        self.pump.flush()
        def cb(res):
            self.assertIsInstance(res, NewStyleCopy)
            self.assertEqual(res.s, "value")
            self.assertFalse(res is orig) # no cheating :)
        d.addCallback(cb)
        return d

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