MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testEmptyWrite

Method testEmptyWrite

test/IECore/IndexedIO.py:182–187  ·  view source on GitHub ↗

Test FileIndexedIO empty file writing

(self)

Source from the content-addressed store, hash-verified

180 self.assertEqual( f.path() , [] )
181
182 def testEmptyWrite(self):
183 """Test FileIndexedIO empty file writing"""
184 f = IECore.FileIndexedIO(os.path.join( ".", "test", "FileIndexedIO.fio" ), [], IECore.IndexedIO.OpenMode.Write)
185 self.assertEqual( f.path() , [] )
186 f = None
187 self.assertTrue( os.path.exists( os.path.join( ".", "test", "FileIndexedIO.fio" ) ) )
188
189 def testSaveWriteObjects(self):
190 """Test FileIndexedIO read/write operations."""

Callers

nothing calls this directly

Calls 3

FileIndexedIOMethod · 0.80
joinMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected