Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr SubscriptLoad NameLoad Index Str For NameStore ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Num body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr CompareIs Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Num attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr Str Call AttributeLoad NameLoad attr ListLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A inspect N/A unittest N/A IECore N/A Gaffer N/A GafferTest N/A GafferScene N/A GafferSceneTest SceneSwitchTest N/A N/A GafferSceneTest SceneTestCase N/A testDefaultName N/A N/A self N/A N/A N/A s N/A N/A GafferScene SceneSwitch N/A N/A N/A self assertEqual N/A N/A s getName SceneSwitch N/A testEnabledPlug N/A N/A self N/A N/A N/A s N/A N/A GafferScene SceneSwitch N/A N/A N/A self assertTrue N/A isinstance N/A s N/A enabled N/A Gaffer BoolPlug N/A N/A N/A self assertTrue N/A N/A N/A s N/A enabled isSame N/A N/A s enabledPlug N/A N/A N/A self assertFalse N/A enabled1 s N/A testAffects N/A N/A self N/A N/A N/A plane N/A N/A GafferScene Plane N/A sphere N/A N/A GafferScene Sphere N/A switch N/A N/A GafferScene SceneSwitch N/A N/A N/A N/A N/A switch N/A in N/A 0 setInput N/A plane N/A out N/A N/A N/A N/A N/A switch N/A in N/A 1 setInput N/A sphere N/A out N/A p N/A N/A N/A switch N/A in N/A 0 N/A N/A switch N/A in N/A 1 N/A N/A n N/A N/A p keys N/A N/A a N/A N/A switch affects N/A p N/A n N/A N/A N/A self assertEqual N/A len a 1 N/A N/A N/A self assertTrue N/A N/A N/A a N/A 0 isSame N/A N/A switch N/A out N/A n N/A a N/A set N/A N/A switch affects N/A switch N/A enabled N/A N/A N/A self assertEqual a N/A set N/A N/A N/A switch N/A out children N/A a N/A set N/A N/A switch affects N/A switch N/A index N/A N/A N/A self assertEqual a N/A set N/A N/A N/A switch N/A out children N/A testSwitching N/A N/A self N/A N/A N/A plane N/A N/A GafferScene Plane N/A sphere N/A N/A GafferScene Sphere N/A switch N/A N/A GafferScene SceneSwitch N/A N/A N/A N/A N/A switch N/A in N/A 0 setInput N/A plane N/A out N/A N/A N/A N/A N/A switch N/A in N/A 1 setInput N/A sphere N/A out N/A N/A N/A self assertScenesEqual N/A switch N/A out N/A plane N/A out N/A N/A N/A self assertSceneHashesEqual N/A switch N/A out N/A plane N/A out N/A N/A N/A N/A switch N/A index setValue 1 N/A N/A N/A self assertScenesEqual N/A switch N/A out N/A sphere N/A out N/A N/A N/A self assertSceneHashesEqual N/A switch N/A out N/A sphere N/A out N/A N/A N/A N/A switch N/A enabled setValue False N/A N/A N/A self assertScenesEqual N/A switch N/A out N/A plane N/A out N/A N/A N/A self assertSceneHashesEqual N/A switch N/A out N/A plane N/A out N/A testSerialisation N/A N/A self N/A N/A N/A script N/A N/A Gaffer ScriptNode N/A N/A script N/A switch N/A N/A GafferScene SceneSwitch N/A N/A script N/A plane N/A N/A GafferScene Plane N/A N/A script N/A sphere N/A N/A GafferScene Sphere N/A N/A N/A N/A N/A N/A script N/A switch N/A in N/A 0 setInput N/A N/A script N/A plane N/A out N/A N/A N/A N/A N/A N/A script N/A switch N/A in N/A 1 setInput N/A N/A script N/A sphere N/A out N/A script2 N/A N/A Gaffer ScriptNode N/A N/A N/A script2 execute N/A N/A script serialise N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A N/A script2 N/A switch N/A in N/A 0 getInput isSame N/A N/A script2 N/A plane N/A out N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A N/A script2 N/A switch N/A in N/A 1 getInput isSame N/A N/A script2 N/A sphere N/A out N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A script2 N/A switch N/A in N/A 2 getInput None N/A testScenePathNotAvailableInContextExpressions N/A N/A self N/A N/A N/A script N/A N/A Gaffer ScriptNode N/A N/A script N/A plane N/A N/A GafferScene Plane N/A N/A script N/A sphere N/A N/A GafferScene Sphere N/A N/A script N/A switch N/A N/A GafferScene SceneSwitch N/A N/A N/A N/A N/A N/A script N/A switch N/A in N/A 0 setInput N/A N/A script N/A plane N/A out N/A N/A N/A N/A N/A N/A script N/A switch N/A in N/A 1 setInput N/A N/A script N/A sphere N/A out N/A N/A script N/A expression N/A N/A Gaffer Expression N/A N/A N/A N/A script N/A expression setExpression N/A N/A inspect cleandoc 
			assert( context.get( "scene:path", None ) is None )
			parent["switch"]["index"] = 1
			 N/A N/A N/A self assertEqual N/A N/A N/A N/A script N/A switch N/A out childNames / N/A N/A IECore InternedStringVectorData N/A sphere N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main