aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-08-28 01:15:37 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-28 01:15:37 +0000
commitd2f371e26230ecb223372fe590f744085329b336 (patch)
treede5158e2224ba0337f8063120ccf8a49b9046979
parent6d7b122d40e3ee932b3cb699319083b085704b59 (diff)
parent77810181595e08aa98676c5ff1a07b877dd701f4 (diff)
Merge "Ns descriptor related stuffs."
-rw-r--r--catalog/pub/utils/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/catalog/pub/utils/tests.py b/catalog/pub/utils/tests.py
index 0fe8310d..73029fa6 100644
--- a/catalog/pub/utils/tests.py
+++ b/catalog/pub/utils/tests.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import platform
import unittest
import mock
import fileutil
@@ -51,7 +52,10 @@ class UtilsTest(unittest.TestCase):
fileutil.delete_dirs("abc")
is_ok, f_name = fileutil.download_file_from_http("1", "abc", "1.txt")
self.assertTrue(is_ok)
- self.assertTrue(f_name.endswith("abc/1.txt"))
+ if 'Windows' in platform.system():
+ self.assertTrue(f_name.endswith("abc\\1.txt"))
+ else:
+ self.assertTrue(f_name.endswith("abc/1.txt"))
fileutil.delete_dirs("abc")
def test_query_job_status(self):