| 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 | |