def test_partial(self):
        """
        Send partial data, nothing should be definitely received.
        """
        for s in self.partialStrings:
            r = self.getProtocol()
            for c in iterbytes(s):
                r.dataReceived(c)
            self.assertEqual(r.received, [])

        Send partial data, nothing should be definitely received.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/test/test_basic.py