#NEWLINE# @ mock . patch ( ( CONTEXT + '.os.mkdir' ) ) #NEWLINE# @ mock . patch ( ( TEMPEST + '.Tempest.generate_config_file' ) ) #NEWLINE# @ mock . patch ( ( TEMPEST + '.Tempest.is_configured' ) , return_value = True ) #NEWLINE# @ mock . patch ( ( TEMPEST + '.Tempest.install' ) ) #NEWLINE# @ mock . patch ( ( TEMPEST + '.Tempest.is_installed' ) , return_value = True ) #NEWLINE# def test_setup( self , mock_tempest_is_installed , mock_tempest_install , mock_tempest_is_configured , mock_tempest_generate_config_file , mock_mkdir ) : #NEWLINE# #INDENT# benchmark = tempest . Tempest ( self . context ) #NEWLINE# benchmark . setup ( ) #NEWLINE# self . assertEqual ( 0 , mock_tempest_install . call_count ) #NEWLINE# self . assertEqual ( 0 , mock_tempest_is_configured . call_count ) #NEWLINE# self . assertEqual ( '/dev/null' , benchmark . verifier . log_file_raw )