'A ChunkingZipFile opened in write-mode should not allow .readfile(),
and raise a RuntimeError instead.'

def test_invalidMode(self):

    with zipstream.ChunkingZipFile(self.mktemp(), 'w') as czf:
        self.assertRaises(RuntimeError, czf.readfile, 'something')
