#NEWLINE# @ pytest . fixture ( params = [ ( 'w:r' , True , 'w:r/w:rPr/w:u{w:val=single}' ) , ( 'w:r' , False , 'w:r/w:rPr/w:u{w:val=none}' ) , ( 'w:r' , None , 'w:r/w:rPr' ) , ( 'w:r' , WD_UNDERLINE . SINGLE , 'w:r/w:rPr/w:u{w:val=single}' ) , ( 'w:r' , WD_UNDERLINE . THICK , 'w:r/w:rPr/w:u{w:val=thick}' ) , ( 'w:r/w:rPr/w:u{w:val=single}' , True , 'w:r/w:rPr/w:u{w:val=single}' ) , ( 'w:r/w:rPr/w:u{w:val=single}' , False , 'w:r/w:rPr/w:u{w:val=none}' ) , ( 'w:r/w:rPr/w:u{w:val=single}' , None , 'w:r/w:rPr' ) , ( 'w:r/w:rPr/w:u{w:val=single}' , WD_UNDERLINE . SINGLE , 'w:r/w:rPr/w:u{w:val=single}' ) , ( 'w:r/w:rPr/w:u{w:val=single}' , WD_UNDERLINE . DOTTED , 'w:r/w:rPr/w:u{w:val=dotted}' ) ] ) #NEWLINE# def underline_set_fixture( self , request ) : #NEWLINE# #INDENT# ( initial_r_cxml , value , expected_cxml ) = request . param #NEWLINE# run = Font ( element ( initial_r_cxml ) , None ) #NEWLINE# expected_xml = xml ( expected_cxml ) #NEWLINE# return ( run , value , expected_xml )