( self )
| 795 | self.assertEqual (p.userData(), IECore.CompoundObject() ) |
| 796 | |
| 797 | def testErrorMessage( self ) : |
| 798 | |
| 799 | p = IECore.ObjectParameter( name = "name", description = "description", defaultValue = IECore.FloatData( 1 ), types = [IECore.TypeId.FloatData] ) |
| 800 | self.assertEqual( p.valueValid( IECore.V3fData( imath.V3f( 1 ) ) )[1], "Object is not of type FloatData" ) |
| 801 | |
| 802 | p = IECore.ObjectParameter( name = "name", description = "description", defaultValue = IECore.FloatData( 1 ), types = [IECore.TypeId.FloatData, IECore.TypeId.IntData] ) |
| 803 | self.assertEqual( p.valueValid( IECore.V3fData( imath.V3f( 1 ) ) )[1], "Object is not of type FloatData or IntData" ) |
| 804 | |
| 805 | p = IECore.ObjectParameter( name = "name", description = "description", defaultValue = IECore.FloatData( 1 ), types = [IECore.TypeId.FloatData, IECore.TypeId.DoubleData, IECore.TypeId.IntData] ) |
| 806 | self.assertEqual( p.valueValid( IECore.V3fData( imath.V3f( 1 ) ) )[1], "Object is not of type FloatData, DoubleData or IntData" ) |
| 807 | |
| 808 | def testOrderedPresets( self ) : |
| 809 |
nothing calls this directly
no test coverage detected