#NEWLINE# def test_custom_cluster_name_bad( self , capsys ) : #NEWLINE# #INDENT# with pytest . raises ( SystemExit ) : #NEWLINE# #INDENT# self . parser . parse_args ( '--cluster=/evil-this-should-not-be-created' . split ( ) ) #NEWLINE# #UNINDENT# ( out , err ) = capsys . readouterr ( ) #NEWLINE# assert ( '--cluster: argument must start with a letter and contain only letters and numbers' in err )