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

Method testNotADirectory

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

Source from the content-addressed store, hash-verified

715 p.setValue( IECore.StringData( "hello" ) )
716
717 def testNotADirectory( self ) :
718
719 p = IECore.FileNameParameter(
720 name = "f",
721 description = "d",
722 defaultValue = "test",
723 check = IECore.FileNameParameter.CheckType.MustExist,
724 allowEmptyString = True
725 )
726
727 self.assertRaises( RuntimeError, p.validate )
728 self.assertEqual( p.valueValid()[0], False )
729
730class TestValidation( unittest.TestCase ) :
731

Callers

nothing calls this directly

Calls 2

valueValidMethod · 0.95
FileNameParameterMethod · 0.80

Tested by

no test coverage detected