Test FileIndexedIO resetRoot
(self)
| 201 | self.assertEqual( txt, IECore.Object.load( f2, "obj2" ) ) |
| 202 | |
| 203 | def testResetRoot(self): |
| 204 | """Test FileIndexedIO resetRoot""" |
| 205 | |
| 206 | f = IECore.FileIndexedIO(os.path.join( ".", "test", "FileIndexedIO.fio" ), [], IECore.IndexedIO.OpenMode.Write) |
| 207 | g = f.subdirectory("sub1", IECore.IndexedIO.MissingBehaviour.CreateIfMissing ) |
| 208 | g.subdirectory("sub2", IECore.IndexedIO.MissingBehaviour.CreateIfMissing ) |
| 209 | |
| 210 | e = g.entryIds() |
| 211 | self.assertEqual( len(e), 1 ) |
| 212 | |
| 213 | self.assertEqual( e, ["sub2"]) |
| 214 | self.assertTrue( g.entry('sub2').entryType() == IECore.IndexedIO.EntryType.Directory ) |
| 215 | |
| 216 | def testMkdir(self): |
| 217 | """Test FileIndexedIO mkdir""" |
nothing calls this directly
no test coverage detected