( self )
| 47 | class SceneInterfaceTest( unittest.TestCase ) : |
| 48 | |
| 49 | def writeSCC( self ) : |
| 50 | |
| 51 | m = IECoreScene.SceneCache( self.__testFile, IECore.IndexedIO.OpenMode.Write ) |
| 52 | m.writeAttribute( "w", IECore.BoolData( True ), 1.0 ) |
| 53 | |
| 54 | t = m.createChild( "t" ) |
| 55 | t.writeTransform( IECore.M44dData(imath.M44d().translate(imath.V3d( 1, 0, 0 ))), 1.0 ) |
| 56 | t.writeAttribute( "wuh", IECore.BoolData( True ), 1.0 ) |
| 57 | |
| 58 | s = t.createChild( "s" ) |
| 59 | s.writeObject( IECoreScene.SpherePrimitive( 1 ), 1.0 ) |
| 60 | s.writeAttribute( "glah", IECore.BoolData( True ), 1.0 ) |
| 61 | |
| 62 | del s, t, m |
| 63 | |
| 64 | if not os.path.exists( self.__testFileUpper ) : |
| 65 | shutil.copyfile( self.__testFile, self.__testFileUpper ) |
| 66 | |
| 67 | def testGet( self ) : |
| 68 |
no test coverage detected