#NEWLINE# def test( self ) : #NEWLINE# #INDENT# cube = GafferScene . Cube ( ) #NEWLINE# camera = GafferScene . Camera ( ) #NEWLINE# camera [ 'transform' ] [ 'translate' ] [ 'z' ] . setValue ( 2 ) #NEWLINE# group = GafferScene . Group ( ) #NEWLINE# group [ 'in' ] [ 0 ] . setInput ( cube [ 'out' ] ) #NEWLINE# group [ 'in' ] [ 1 ] . setInput ( group [ 'out' ] ) #NEWLINE# map = GafferScene . MapProjection ( ) #NEWLINE# map [ 'in' ] . setInput ( group [ 'out' ] ) #NEWLINE# map [ 'camera' ] . setValue ( '/group/camera' ) #NEWLINE# oIn = group [ 'out' ] . object ( '/group/cube' ) #NEWLINE# self . assertTrue ( ( 's' not in oIn ) ) #NEWLINE# self . assertTrue ( ( 't' not in oIn ) ) #NEWLINE# oOut = map [ 'out' ] . object ( '/group/cube' ) #NEWLINE# self . assertTrue ( ( 's' in oOut ) ) #NEWLINE# self . assertTrue ( ( 't' in oOut ) ) #NEWLINE# self . assertTrue ( oOut . arePrimitiveVariablesValid ( ) ) #NEWLINE# oIn [ 's' ] = oOut [ 's' ] #NEWLINE# oIn [ 't' ] = oOut [ 't' ] #NEWLINE# self . assertEqual ( oIn , oOut ) #NEWLINE# camera [ 'transform' ] [ 'translate' ] [ 'z' ] . setValue ( 3 ) #NEWLINE# oOut2 = map [ 'out' ] . object ( '/group/cube' ) #NEWLINE# self . assertNotEqual ( oOut , oOut2 )