'Calling L{_InputStream.read} with an integer that is greater than the
total number of bytes in the input stream returns all bytes in the
input stream.'

def test_readMoreThan(self):

    bytes = 'some    bytes    are    here'
    d = self._renderAndReturnReaderResult((lambda input: input.read((len(bytes) + 3))), bytes)
    d.addCallback(self.assertEqual, bytes)
    return d
