#NEWLINE# @ pytest . fixture ( params = [ ( 'w:styles/w:style{w:type=paragraph,w:styleId=Foo}' , 'Foo' , WD_STYLE_TYPE . PARAGRAPH ) , ( 'w:styles/w:style{w:type=paragraph,w:styleId=Foo}' , 'Bar' , WD_STYLE_TYPE . PARAGRAPH ) , ( 'w:styles/w:style{w:type=table,w:styleId=Bar}' , 'Bar' , WD_STYLE_TYPE . PARAGRAPH ) ] ) #NEWLINE# def _get_by_id_fixture( self , request , default_ , StyleFactory_ , style_ ) : #NEWLINE# #INDENT# ( styles_cxml , style_id , style_type ) = request . param #NEWLINE# styles_elm = element ( styles_cxml ) #NEWLINE# style_elm = styles_elm [ 0 ] #NEWLINE# styles = Styles ( styles_elm ) #NEWLINE# default_calls = ( [ ] if ( self == 'Foo' ) else [ call ( style_type ) ] ) #NEWLINE# StyleFactory_calls = ( [ call ( style_elm ) ] if ( style_id == 'Foo' ) else [ ] ) #NEWLINE# default_ . return_value = StyleFactory_ . return_value = style_ #NEWLINE# return ( styles , style_id , style_type , default_calls , StyleFactory_ , StyleFactory_calls , style_ )