def setUp(self): fs = MemoryFS() fp = MemoryPath(fs).child("test.iso") fp.setContent(iso) AbstractFilePathTestCase.setUp(self) self.path = ISOPath(fp) self.root = self.path
class ISOPathTestCase(AbstractFilePathTestCase): def _mkpath(self, *p): self.all.append("/".join(p)) x = os.path.abspath(os.path.join(self.cmn, *p)) return x def setUp(self): fs = MemoryFS() fp = MemoryPath(fs).child("test.iso") fp.setContent(iso) AbstractFilePathTestCase.setUp(self) self.path = ISOPath(fp) self.root = self.path def test_createDirectory(self): """ createDirectory() cannot create new directories on a read-only file path. """ self.assertRaises(Exception, self.path.child(b"directory").createDirectory) def test_walk(self): AbstractFilePathTestCase.test_walk(self) test_walk.todo = "Joliet/Rock Ridge names need to be allowed"