#NEWLINE# def it_can_validate_a_value_as_a_python_string( self , valid_str_fixture ) : #NEWLINE# #INDENT# ( value , expected_exception ) = value #NEWLINE# if ( expected_exception is None ) : #NEWLINE# #INDENT# BaseSimpleType . validate_string ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# with pytest . raises ( expected_exception ) : #NEWLINE# #INDENT# BaseSimpleType . validate_string ( value )