#NEWLINE# def test_mon_help( self , capsys ) : #NEWLINE# #INDENT# with pytest . raises ( SystemExit ) : #NEWLINE# #INDENT# self . parser . parse_args ( 'mon --help' . split ( ) ) #NEWLINE# #UNINDENT# ( out , err ) = capsys . readouterr ( ) #NEWLINE# assert ( 'usage: ceph-deploy mon' in out ) #NEWLINE# assert ( 'positional arguments:' in out ) #NEWLINE# assert ( 'optional arguments:' in out )