#NEWLINE# def test_pkg_install_host_required( self , capsys ) : #NEWLINE# #INDENT# with pytest . raises ( SystemExit ) : #NEWLINE# #INDENT# self . parser . parse_args ( 'pkg --install pkg1' . split ( ) ) #NEWLINE# #UNINDENT# ( out , err ) = capsys . readouterr ( ) #NEWLINE# assert ( 'error: too few arguments' in err )