def test_receive(self):
        """
        Test receiving data find the same data send.
        """
        r = self.getProtocol()
        for s in self.strings:
            for c in iterbytes(struct.pack(r.structFormat,len(s)) + s):
                r.dataReceived(c)
        self.assertEqual(r.received, self.strings)

        Test receiving data find the same data send.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/test/test_basic.py