From 211c14c638b9bf393932be42d4f04a4dd12a84bc Mon Sep 17 00:00:00 2001
From: TerryHowe <terrylhowe@gmail.com>
Date: Thu, 28 May 2015 11:01:13 -0600
Subject: [PATCH] Fix shell tests

Personally, I think these tests should be removed, they are
testing OCC.  An internal OCC change on a private method broke
this test.

Change-Id: I760bf90ef8bd97e30be7838874337be695d45285
---
 openstackclient/tests/test_shell.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/openstackclient/tests/test_shell.py b/openstackclient/tests/test_shell.py
index 492b60de29..a3250f1753 100644
--- a/openstackclient/tests/test_shell.py
+++ b/openstackclient/tests/test_shell.py
@@ -559,7 +559,7 @@ class TestShellCli(TestShell):
 
     @mock.patch("os_client_config.config.OpenStackConfig._load_config_file")
     def test_shell_args_cloud_no_vendor(self, config_mock):
-        config_mock.return_value = copy.deepcopy(CLOUD_1)
+        config_mock.return_value = ('file.yaml', copy.deepcopy(CLOUD_1))
         _shell = make_shell()
 
         fake_execute(
@@ -596,8 +596,8 @@ class TestShellCli(TestShell):
     @mock.patch("os_client_config.config.OpenStackConfig._load_vendor_file")
     @mock.patch("os_client_config.config.OpenStackConfig._load_config_file")
     def test_shell_args_cloud_public(self, config_mock, public_mock):
-        config_mock.return_value = copy.deepcopy(CLOUD_2)
-        public_mock.return_value = copy.deepcopy(PUBLIC_1)
+        config_mock.return_value = ('file.yaml', copy.deepcopy(CLOUD_2))
+        public_mock.return_value = ('file.yaml', copy.deepcopy(PUBLIC_1))
         _shell = make_shell()
 
         fake_execute(
@@ -636,8 +636,8 @@ class TestShellCli(TestShell):
     @mock.patch("os_client_config.config.OpenStackConfig._load_vendor_file")
     @mock.patch("os_client_config.config.OpenStackConfig._load_config_file")
     def test_shell_args_precedence(self, config_mock, vendor_mock):
-        config_mock.return_value = copy.deepcopy(CLOUD_2)
-        vendor_mock.return_value = copy.deepcopy(PUBLIC_1)
+        config_mock.return_value = ('file.yaml', copy.deepcopy(CLOUD_2))
+        vendor_mock.return_value = ('file.yaml', copy.deepcopy(PUBLIC_1))
         _shell = make_shell()
 
         # Test command option overriding config file value
@@ -690,8 +690,8 @@ class TestShellCliEnv(TestShell):
     @mock.patch("os_client_config.config.OpenStackConfig._load_vendor_file")
     @mock.patch("os_client_config.config.OpenStackConfig._load_config_file")
     def test_shell_args_precedence_1(self, config_mock, vendor_mock):
-        config_mock.return_value = copy.deepcopy(CLOUD_2)
-        vendor_mock.return_value = copy.deepcopy(PUBLIC_1)
+        config_mock.return_value = ('file.yaml', copy.deepcopy(CLOUD_2))
+        vendor_mock.return_value = ('file.yaml', copy.deepcopy(PUBLIC_1))
         _shell = make_shell()
 
         # Test env var
@@ -731,8 +731,8 @@ class TestShellCliEnv(TestShell):
     @mock.patch("os_client_config.config.OpenStackConfig._load_vendor_file")
     @mock.patch("os_client_config.config.OpenStackConfig._load_config_file")
     def test_shell_args_precedence_2(self, config_mock, vendor_mock):
-        config_mock.return_value = copy.deepcopy(CLOUD_2)
-        vendor_mock.return_value = copy.deepcopy(PUBLIC_1)
+        config_mock.return_value = ('file.yaml', copy.deepcopy(CLOUD_2))
+        vendor_mock.return_value = ('file.yaml', copy.deepcopy(PUBLIC_1))
         _shell = make_shell()
 
         # Test command option overriding config file value