From a15ebf5e914b445704eae1adfa4cfc98f3bcab50 Mon Sep 17 00:00:00 2001 From: Vladimir Diaz Date: Fri, 20 Apr 2018 10:59:24 -0400 Subject: [PATCH] Modify URL comparison in test_mix_and_match_attack.py Signed-off-by: Vladimir Diaz --- tests/test_mix_and_match_attack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mix_and_match_attack.py b/tests/test_mix_and_match_attack.py index 7f284a82..0f58be06 100755 --- a/tests/test_mix_and_match_attack.py +++ b/tests/test_mix_and_match_attack.py @@ -248,7 +248,7 @@ def test_with_tuf(self): url_file = os.path.join(url_prefix, 'metadata', 'role1.json') # Verify that 'role1.json' is the culprit. - self.assertEqual(url_file, mirror_url) + self.assertEqual(url_file.replace('\\', '/'), mirror_url) self.assertTrue(isinstance(mirror_error, securesystemslib.exceptions.BadVersionNumberError))