diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-07-19 09:52:56 -0700 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-07-19 09:52:56 -0700 |
commit | 4b6e35c70157840829a466ee0575a2ff27df841e (patch) | |
tree | 2845561324a74353e388f5a35f200a2b0e3fe8ec /tests | |
parent | a34f2d1a07a2840dd338eb1805751d0a5df047a4 (diff) | |
download | pysaml2-4b6e35c70157840829a466ee0575a2ff27df841e.tar.gz |
Got the tests working.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fakeIDP.py | 10 | ||||
-rw-r--r-- | tests/test_51_client.py | 4 | ||||
-rw-r--r-- | tests/test_67_manage_name_id.py | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/tests/fakeIDP.py b/tests/fakeIDP.py index 3fd25a73..1df910e2 100644 --- a/tests/fakeIDP.py +++ b/tests/fakeIDP.py @@ -47,6 +47,7 @@ class DummyResponse(object): self.status_code = code self.text = data self.headers = headers or [] + self.content = data class FakeIDP(Server): @@ -142,12 +143,9 @@ class FakeIDP(Server): #userid = "Pavill" name_id = aquery.subject.name_id - attr_resp = self.create_attribute_response(extra, aquery.id, - None, - sp_entity_id=aquery.issuer - .text, - name_id=name_id, - attributes=aquery.attribute) + attr_resp = self.create_attribute_response( + extra, aquery.id, None, sp_entity_id=aquery.issuer.text, + name_id=name_id, attributes=aquery.attribute) if binding == BINDING_SOAP: # SOAP packing diff --git a/tests/test_51_client.py b/tests/test_51_client.py index 11b5cd09..6b93e455 100644 --- a/tests/test_51_client.py +++ b/tests/test_51_client.py @@ -593,6 +593,6 @@ class TestClientWithDummy(): # tc.test_response() if __name__ == "__main__": - tc = TestClient() + tc = TestClientWithDummy() tc.setup_class() - tc.test_sign_then_encrypt_assertion2() + tc.test_do_attribute_query() diff --git a/tests/test_67_manage_name_id.py b/tests/test_67_manage_name_id.py index 7c1dc748..f0e41fb5 100644 --- a/tests/test_67_manage_name_id.py +++ b/tests/test_67_manage_name_id.py @@ -55,7 +55,7 @@ def test_flow(): print _req.message - mnir = idp.create_manage_name_id_response(_req.message, None) + mnir = idp.create_manage_name_id_response(_req.message, [binding]) if binding != BINDING_SOAP: binding, destination = idp.pick_binding("manage_name_id_service", |