( self )
| 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 | |
| 730 | class TestValidation( unittest.TestCase ) : |
| 731 |
nothing calls this directly
no test coverage detected