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

Method testFilename

test/IECoreVDB/VDBObjectTest.py:253–262  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

251 self.assertFalse( smoke2.unmodifiedFromFile() )
252
253 def testFilename( self ) :
254 sourcePath = os.path.join( self.dataDir, "smoke.vdb" )
255 smoke = IECoreVDB.VDBObject( sourcePath )
256
257 # store the path to the file used to initialise the VDBObject (can be used when sending this VDB to the renderer)
258 self.assertEqual( smoke.fileName(), sourcePath )
259
260 # make sure an empty VDBObject returns a empty filename
261 emptyVDB = IECoreVDB.VDBObject()
262 self.assertEqual( emptyVDB.fileName(), "" )
263
264 def testEquality( self ) :
265

Callers

nothing calls this directly

Calls 3

fileNameMethod · 0.95
joinMethod · 0.80
VDBObjectMethod · 0.80

Tested by

no test coverage detected