#NEWLINE# @ pytest . mark . parametrize ( 'x,y,p,r' , [ [ string , string , True , string ] , [ string , string , False , string ] , [ Option ( string ) , Option ( string ) , True , Option ( string ) ] , [ Option ( string ) , Option ( string ) , False , Option ( string ) ] , [ Option ( string ) , string , True , Option ( string ) ] , [ Option ( string ) , string , False , string ] ] ) #NEWLINE# def test_promote_string_with_option( x , y , p , r ) : #NEWLINE# #INDENT# assert ( promote ( x , y , promote_option = p ) == promote ( x , x , promote_option = p ) == r )