#NEWLINE# @ mock . patch ( 'rally.api.objects.Deployment.get' ) #NEWLINE# @ mock . patch ( 'rally.api.objects.Verification' ) #NEWLINE# @ mock . patch ( 'rally.verification.tempest.tempest.Tempest' ) #NEWLINE# def test_verify_tempest_not_installed( self , mock_tempest , mock_verification , mock_deployment_get ) : #NEWLINE# #INDENT# mock_deployment_get . return_value = { #NEWLINE# #INDENT# 'uuid' : self . deployment_uuid , #NEWLINE# #UNINDENT# } #NEWLINE# mock_tempest . return_value = self . tempest #NEWLINE# self . tempest . is_installed . return_value = False #NEWLINE# api . Verification . verify ( mock_tempest . deployment_uuid , set_name = 'smoke' , regex = None , tests_file = None , tempest_config = None ) #NEWLINE# self . tempest . is_installed . assert_called_once_with ( ) #NEWLINE# self . tempest . install . assert_called_once_with ( ) #NEWLINE# self . tempest . verify . assert_called_once_with ( set_name = 'smoke' , regex = None , tests_file = None , expected_failures = None , concur = 0 , failing = False )