'If L{_IdentityTransferDecoder.dataReceived} is called with a byte string
with length equal to the content length passed to
L{_IdentityTransferDecoder}\'s initializer, the data callback is invoked
with that string and the finish callback is invoked with a zero-length
string.'

def test_exactAmountReceived(self):

    self.decoder.dataReceived(('x' * self.contentLength))
    self.assertEqual(self.data, [('x' * self.contentLength)])
    self.assertEqual(self.finish, [''])
