def test_shortStrings(self):
        """
        If L{_IdentityTransferDecoder.dataReceived} is called multiple times
        with strings which, when concatenated, are as long as the content
        length provided, the data callback is invoked with each string and the
        finish callback is invoked only after the second call.
        """
        self.decoder.dataReceived('x')
        self.assertEqual(self.data, ['x'])
        self.assertEqual(self.finish, [])
        self.decoder.dataReceived('y' * (self.contentLength - 1))
        self.assertEqual(self.data, ['x', 'y' * (self.contentLength - 1)])
        self.assertEqual(self.finish, [''])
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_http.py/IdentityTransferEncodingTests.test_shortStrings/original