def test_receiveNetstringPortions_1(self):
        self.netstringReceiver.dataReceived("4:aa")
        self.netstringReceiver.dataReceived("aa,")
        self.assertEqual(self.netstringReceiver.received, ["aaaa"])
        self.assertTrue(self.netstringReceiver._payloadComplete())
Netstrings can be received in two portions.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_protocols.py/NetstringReceiverTestCase.test_receiveNetstringPortions_1