( self )
| 224 | h = o.hash() |
| 225 | |
| 226 | def testNoneKey( self ) : |
| 227 | |
| 228 | o = IECore.CompoundObject() |
| 229 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 230 | o.get( None ) |
| 231 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 232 | o[None] |
| 233 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 234 | o[None] = IECore.IntData( 10 ) |
| 235 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 236 | del o[None] |
| 237 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 238 | None in o |
| 239 | with self.assertRaisesRegex( Exception, r"Python argument types" ) : |
| 240 | o.has_key( None ) |
| 241 | with self.assertRaisesRegex( Exception, r"Incompatible key type" ) : |
| 242 | IECore.CompoundObject( { None : IECore.IntData( 10 ) } ) |
| 243 | |
| 244 | if __name__ == "__main__": |
| 245 | unittest.main() |
nothing calls this directly
no test coverage detected