#NEWLINE# @ mock . patch ( 'six.moves.builtins.open' , side_effect = mock . mock_open ( ) ) #NEWLINE# @ mock . patch ( 'os.path.exists' , return_value = False ) #NEWLINE# @ mock . patch ( 'rally.common.objects.Deployment.get' ) #NEWLINE# @ mock . patch ( 'rally.verification.tempest.tempest.Tempest' ) #NEWLINE# def test_show_config_info_when_no_tempest_tree_exists( self , mock_tempest , mock_deployment_get , mock_exists , mock_open ) : #NEWLINE# #INDENT# mock_tempest . return_value = self . tempest #NEWLINE# self . assertRaises ( exceptions . NotFoundException , api . Verification . show_config_info , self . deployment_uuid ) #NEWLINE# self . assertEqual ( 0 , mock_open . call_count )