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

Method test

test/IECore/Parameters.py:1067–1088  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

1065class TestFileSequenceVectorParameter( unittest.TestCase ) :
1066
1067 def test( self ) :
1068
1069 dv = IECore.StringVectorData()
1070
1071 p = IECore.FileSequenceVectorParameter(
1072 name = "f",
1073 description = "d",
1074 defaultValue = dv,
1075 check = IECore.FileSequenceVectorParameter.CheckType.MustExist,
1076 allowEmptyList = True,
1077 presets = (
1078 ( "preset1", IECore.StringVectorData( [ 'one', 'two' ] ) ),
1079 )
1080 )
1081
1082 self.assertEqual( p.name, "f" )
1083 self.assertEqual( p.description, "d" )
1084 self.assertEqual( p.mustExist, True )
1085 self.assertEqual( p.allowEmptyList, True )
1086 self.assertEqual( p.userData(), IECore.CompoundObject() )
1087 self.assertEqual( p.valueValid()[0], True )
1088 p.validate()
1089
1090if __name__ == "__main__":
1091 unittest.main()

Callers

nothing calls this directly

Calls 5

valueValidMethod · 0.95
CompoundObjectMethod · 0.80
userDataMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected