#NEWLINE# @ pytest . fixture ( params = [ ( 'p:spTree/(p:sp,p:sp/p:nvSpPr/p:nvPr/p:ph{idx=0})' , True ) , ( 'p:spTree/(p:sp,p:sp)' , False ) ] ) #NEWLINE# def title_fixture( self , request , slide_ , _shape_factory_ , shape_ ) : #NEWLINE# #INDENT# ( spTree_cxml , found ) = request . param #NEWLINE# spTree = element ( spTree_cxml ) #NEWLINE# sp = spTree . xpath ( 'p:sp' ) [ 1 ] #NEWLINE# slide_ . spTree = spTree #NEWLINE# shapes = SlideShapeTree ( slide_ ) #NEWLINE# _shape_factory_ . return_value = shape_ #NEWLINE# calls = ( [ call ( sp ) ] if found else [ ] ) #NEWLINE# expected_value = ( shape_ if found else None ) #NEWLINE# return ( shapes , _shape_factory_ , calls , expected_value )