#NEWLINE# def _generate_raw_params( self , test_cls ) : #NEWLINE# #INDENT# for param_src in self . _param_sources : #NEWLINE# #INDENT# if isinstance ( param_src , paramseq ) : #NEWLINE# #INDENT# for param_inst in param_src . _generate_params ( test_cls ) : #NEWLINE# #INDENT# ( yield param_inst ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( param_src , collections . Mapping ) : #NEWLINE# #INDENT# for ( label , param_item ) in param_src . items ( ) : #NEWLINE# #INDENT# ( yield param . _from_param_item ( param_item ) . label ( label ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( param_src , collections . Callable ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# param_src = param_src ( test_cls ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# param_src = param_src ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# assert isinstance ( param_src , ( collections . Sequence , collections . Set ) ) #NEWLINE# #UNINDENT# for param_item in param_src : #NEWLINE# #INDENT# ( yield param . _from_param_item ( param_item ) )