def test_invalidMode(self):
        czf = zipstream.ChunkingZipFile(self.mktemp(), "w")
        self.assertRaises(RuntimeError, czf.readfile, "something")
A ChunkingZipFile opened in write-mode should not allow .readfile(),
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/test/test_zipstream.py/ZipstreamTest.test_invalidMode