#NEWLINE# def test_cant_clean( self ) : #NEWLINE# #INDENT# def ar( s ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# SemVer . clean ( s ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( ( "ValueError not raised: '%s'" % s ) ) #NEWLINE# #UNINDENT# #UNINDENT# for s in [ '1.2.0 beta 4' , '1.2.2-' , '1.2.3b#5' , 'v1.2.2' , '1.4b.0' , '1v.2.2v' , '1.2.4b.5' , '1.2.3.4' , '1.2.3 4' , '1.2000000000000000.3.4' ] : #NEWLINE# #INDENT# ar ( s )