#NEWLINE# def test_copy_required( self ) : #NEWLINE# #INDENT# obj = object ( ) #NEWLINE# def deco( arg ) : #NEWLINE# #INDENT# raise NotImplementedError #NEWLINE# #UNINDENT# class BaseParamCls ( parser . ParameterWithValue ) : #NEWLINE# #INDENT# required = obj #NEWLINE# #UNINDENT# class ParamCls ( BaseParamCls , parameters . DecoratedArgumentParameter ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# p = ParamCls ( decorator = deco , argument_name = 'test' , display_name = 'test' ) #NEWLINE# self . assertTrue ( ( obj is p . sub_required ) )