From e7cfacb46862938bf299da06bbd58178f158904c Mon Sep 17 00:00:00 2001 From: Robert Verkerk Date: Mon, 12 Nov 2018 11:58:21 +0100 Subject: [PATCH] Make sure epic2inttest works with case insensitive handle servers. --- scripts/tests/testB2SafeCmd/epic2intgtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tests/testB2SafeCmd/epic2intgtest.py b/scripts/tests/testB2SafeCmd/epic2intgtest.py index 2ff4c3d..5fff0a0 100644 --- a/scripts/tests/testB2SafeCmd/epic2intgtest.py +++ b/scripts/tests/testB2SafeCmd/epic2intgtest.py @@ -106,7 +106,7 @@ def test_search_handle_by_key_value(self): search_result = subprocess_popen(command) search_result_json = json.loads(search_result[0]) self.assertEqual( - create_result[0], search_result_json[0], + unicode(create_result[0]).lower(), search_result_json[0].lower(), 'search existing handle by key returns unexpected response') @@ -168,7 +168,7 @@ def test_create_handle(self): command = [EPIC_PATH, CRED_STORE, CRED_PATH, 'search', 'URL', 'http://www.testB2SafeCmd.com/1'] search_result = subprocess_popen(command) search_result_json = json.loads(search_result[0]) - self.assertEqual(create_result[0], search_result_json[0], + self.assertEqual(unicode(create_result[0]).lower(), search_result_json[0].lower(), 'create handle should add new handle')