Пример #1
0
    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
Пример #2
0
    def setUp(self):
        self.fs = MemoryFS()

        AbstractFilePathTestCase.setUp(self)

        self.path = MemoryPath(fs=self.fs)
        self.root = self.path
        self.all = self.fs._dirs | set(self.fs._store.keys())
        self.all = set(format_memory_path(p, "/") for p in self.all)
Пример #3
0
    def setUp(self):
        self.fs = MemoryFS()

        AbstractFilePathTestCase.setUp(self)

        self.path = MemoryPath(fs=self.fs)
        self.root = self.path
        self.all = self.fs._dirs | set(self.fs._store.keys())
        self.all = set(format_memory_path(p, "/") for p in self.all)
Пример #4
0
 def test_walk(self):
     AbstractFilePathTestCase.test_walk(self)
Пример #5
0
    def setUp(self):
        AbstractFilePathTestCase.setUp(self)

        self.path = ReadOnlyPath(self.path)
Пример #6
0
 def setUp(self):
     AbstractFilePathTestCase.setUp(self)
     zipit(self.cmn, self.cmn + '.zip')
     self.path = ZipArchive(self.cmn + '.zip')
     self.root = self.path
     self.all = [x.replace(self.cmn, self.cmn + '.zip') for x in self.all]