From d89992cdc2173929b6abcc0c9075ffbd4aa01eb2 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Wed, 10 Dec 2014 14:42:27 +0100 Subject: [PATCH] Fixed file path problem if you run 'setup.py test' --- tests/test_41_response.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_41_response.py b/tests/test_41_response.py index 78e6917..fbad730 100644 --- a/tests/test_41_response.py +++ b/tests/test_41_response.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- from contextlib import closing -from saml2.attribute_converter import to_local -from saml2.samlp import response_from_string from saml2 import config from saml2.authn_context import INTERNETPROTOCOLPASSWORD @@ -115,7 +113,7 @@ class TestResponse: assert False def test_other_response(self): - xml_response = open("attribute_response.xml").read() + xml_response = open(full_path("attribute_response.xml")).read() resp = response_factory( xml_response, self.conf, return_addrs=['https://myreviewroom.com/saml2/acs/'],