'If L{_IdentityTransferDecoder.dataReceived} is called multiple times
with byte 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.'

def test_shortStrings(self):

    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, [''])
