def test_readPartial(self):
        """
        C{.read(num)} should read num bytes from the file.
        """
        contents = "0123456789"
        with self.getFileEntry(contents) as entry:
            one = entry.read(4)
            two = entry.read(200)
        self.assertEqual(one, b"0123")
        self.assertEqual(two, b"456789")

        C{.read(num)} should read num bytes from the file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_zipstream.py