summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2014-06-03 15:14:03 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2014-06-03 15:14:03 +0200
commit87e51d62847f453cee546889df0c338b1b529495 (patch)
tree950eea2bf192c31c50e45d15dfd6f8accb96cd90 /tests
parent84a1453a35950b1910af8b5f7771a63ad6b1e3e7 (diff)
downloadpysaml2-87e51d62847f453cee546889df0c338b1b529495.tar.gz
Fixed decryption/verification of signed and encrypted assertions.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_41_response.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/test_41_response.py b/tests/test_41_response.py
index bd10bdf3..ac4eb683 100644
--- a/tests/test_41_response.py
+++ b/tests/test_41_response.py
@@ -8,13 +8,11 @@ from saml2.server import Server
from saml2.response import response_factory
from saml2.response import StatusResponse
from saml2.response import AuthnResponse
-from saml2.sigver import security_context, SignatureError
-from saml2.sigver import MissingKey
-
-from pytest import raises
+from saml2.sigver import SignatureError
FALSE_ASSERT_SIGNED = "saml_false_signed.xml"
+TIMESLACK = 2592000 # Roughly 3 month
def _eq(l1, l2):
return set(l1) == set(l2)
@@ -73,7 +71,7 @@ class TestResponse:
"http://lingon.catalogix.se:8087/"],
outstanding_queries={
"id12": "http://localhost:8088/sso"},
- timeslack=10000, decode=False)
+ timeslack=TIMESLACK, decode=False)
assert isinstance(resp, StatusResponse)
assert isinstance(resp, AuthnResponse)
@@ -85,7 +83,7 @@ class TestResponse:
"http://lingon.catalogix.se:8087/"],
outstanding_queries={
"id12": "http://localhost:8088/sso"},
- timeslack=10000, decode=False)
+ timeslack=TIMESLACK, decode=False)
assert isinstance(resp, StatusResponse)
assert isinstance(resp, AuthnResponse)
@@ -98,7 +96,7 @@ class TestResponse:
outstanding_queries={
"bahigehogffohiphlfmplepdpcohkhhmheppcdie":
"http://localhost:8088/sso"},
- timeslack=1000000, decode=False)
+ timeslack=TIMESLACK, decode=False)
assert isinstance(resp, StatusResponse)
assert isinstance(resp, AuthnResponse)