#NEWLINE# def it_can_validate_a_hex_RGB_string( self , valid_fixture ) : #NEWLINE# #INDENT# ( str_value , exception ) = valid_fixture #NEWLINE# if ( exception is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ST_HexColorRGB . validate ( str_value ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise AssertionError ( ( "string '%s' did not validate" % str_value ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# with pytest . raises ( exception ) : #NEWLINE# #INDENT# ST_HexColorRGB . validate ( str_value )