#NEWLINE# def test_merge_action_runner_params_meta( self ) : #NEWLINE# #INDENT# ( required , optional , immutable ) = action_param_utils . get_params_view ( action_db = self . action_dbs [ 'action-1' ] , runner_db = self . runnertype_dbs [ 'test-runner-1' ] ) #NEWLINE# merged = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# merged . update ( required ) #NEWLINE# merged . update ( optional ) #NEWLINE# merged . update ( immutable ) #NEWLINE# consolidated = action_param_utils . get_params_view ( action_db = self . action_dbs [ 'action-1' ] , runner_db = self . runnertype_dbs [ 'test-runner-1' ] , merged_only = True ) #NEWLINE# self . assertEqual ( merged , consolidated ) #NEWLINE# self . assertEqual ( len ( required ) , 1 , 'Required should contain only one param.' ) #NEWLINE# self . assertTrue ( ( 'actionstr' in required ) , 'actionstr param is a required param.' ) #NEWLINE# self . assertTrue ( ( ( 'actionstr' not in optional ) and ( 'actionstr' not in immutable ) and ( 'actionstr' in merged ) ) ) #NEWLINE# self . assertTrue ( ( 'runnerimmutable' in immutable ) , 'runnerimmutable should be in immutable.' ) #NEWLINE# self . assertTrue ( ( 'actionimmutable' in immutable ) , 'actionimmutable should be in immutable.' ) #NEWLINE# for opt in optional : #NEWLINE# #INDENT# self . assertTrue ( ( ( opt not in required ) and ( opt not in immutable ) and ( opt in merged ) ) , ( 'Optional parameter %s failed validation.' % opt ) )