( self )
| 685 | self.assertRaises( RuntimeError, p.validate ) |
| 686 | |
| 687 | def testUserData( self ): |
| 688 | compound = IECore.CompoundObject() |
| 689 | compound["first"] = IECore.IntData() |
| 690 | compound["second"] = IECore.QuatfData() |
| 691 | compound["third"] = IECore.StringData("test") |
| 692 | p = IECore.FileNameParameter( |
| 693 | name = "f", |
| 694 | description = "d", |
| 695 | extensions = "tif tiff jpg cin", |
| 696 | check = IECore.FileNameParameter.CheckType.DontCare, |
| 697 | allowEmptyString = True, |
| 698 | userData = compound |
| 699 | ) |
| 700 | self.assertEqual( p.userData(), compound ) |
| 701 | self.assertTrue(not p.userData().isSame(compound) ) |
| 702 | data = p.userData() |
| 703 | data["fourth"] = IECore.CharData('1') |
| 704 | data["first"] = data["fourth"] |
| 705 | |
| 706 | def testNoExtensions( self ) : |
| 707 |
nothing calls this directly
no test coverage detected