summaryrefslogtreecommitdiff
path: root/tests/test_50_server.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2010-09-29 11:04:58 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2010-09-29 11:04:58 +0200
commit01c227b4e51460cf66f89ef25c8644e1c867c08d (patch)
tree2499bb1192188b4aa7e48cdf09341d01011a6cc2 /tests/test_50_server.py
parenteeb66cd81d64069e31fa136bb8d651789514761f (diff)
downloadpysaml2-01c227b4e51460cf66f89ef25c8644e1c867c08d.tar.gz
Changed argument order, optional after required
Diffstat (limited to 'tests/test_50_server.py')
-rw-r--r--tests/test_50_server.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_50_server.py b/tests/test_50_server.py
index 7cf0acbc..9fdb87ff 100644
--- a/tests/test_50_server.py
+++ b/tests/test_50_server.py
@@ -166,8 +166,8 @@ class TestServer1():
def test_sso_response_with_identity(self):
name_id = self.server.ident.temporary_nameid()
resp = self.server.do_response(
- "http://localhost:8087/", # consumer_url
- "id12", # in_response_to
+ "id12", # in_response_to
+ "http://localhost:8087/", # consumer_url
"urn:mace:example.com:saml:roland:sp", # sp_entity_id
{ "eduPersonEntitlement": "Short stop"}, # identity
name_id
@@ -209,8 +209,8 @@ class TestServer1():
def test_sso_response_without_identity(self):
resp = self.server.do_response(
- "http://localhost:8087/", # consumer_url
- "id12", # in_response_to
+ "id12", # in_response_to
+ "http://localhost:8087/", # consumer_url
"urn:mace:example.com:saml:roland:sp", # sp_entity_id
)
@@ -226,7 +226,7 @@ class TestServer1():
def test_sso_failure_response(self):
exc = s_utils.MissingValue("eduPersonAffiliation missing")
- resp = self.server.error_response( "http://localhost:8087/", "id12",
+ resp = self.server.error_response("id12", "http://localhost:8087/",
"urn:mace:example.com:saml:roland:sp", exc )
print resp.keyswv()
@@ -275,9 +275,9 @@ class TestServer1():
name_id = self.server.ident.temporary_nameid()
signed_resp = self.server.do_response(
- "http://lingon.catalogix.se:8087/", # consumer_url
- "id12", # in_response_to
- "urn:mace:example.com:saml:roland:sp", # sp_entity_id
+ "id12", # in_response_to
+ "http://lingon.catalogix.se:8087/", # consumer_url
+ "urn:mace:example.com:saml:roland:sp", # sp_entity_id
{"eduPersonEntitlement":"Jeter"},
name_id = name_id,
sign=True
@@ -333,7 +333,7 @@ class TestServer2():
aa_policy = self.server.conf.aa_policy()
print aa_policy.__dict__
print self.server.conf["service"]
- response = self.server.do_aa_response( "http://example.com/sp/", "aaa",
+ response = self.server.do_aa_response("aaa", "http://example.com/sp/",
"urn:mace:example.com:sp:1", IDENTITY.copy())
assert response != None