summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-01 14:10:00 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-08-01 14:10:00 +0000
commit4301f1775bbd3ea73130326d2241ee0611b91a88 (patch)
tree26554a72b99a70c365c362bd3c7e08d26a077f95 /bindings/python
parentecb45a9f8f9961ae96f899c0593c264fec238ff3 (diff)
downloadlasso-4301f1775bbd3ea73130326d2241ee0611b91a88.tar.gz
lasso-4301f1775bbd3ea73130326d2241ee0611b91a88.tar.xz
lasso-4301f1775bbd3ea73130326d2241ee0611b91a88.zip
reflects change inside lasso/id-ff/identity.c in assertions
Diffstat (limited to 'bindings/python')
-rwxr-xr-xbindings/python/tests/idwsf1_tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bindings/python/tests/idwsf1_tests.py b/bindings/python/tests/idwsf1_tests.py
index 2d04844a..95dce2de 100755
--- a/bindings/python/tests/idwsf1_tests.py
+++ b/bindings/python/tests/idwsf1_tests.py
@@ -187,14 +187,15 @@ class DiscoveryModifyTestCase(IdWsf1TestCase):
idp_disco.processModifyMsg(wsp_disco.msgBody)
idp_disco.setIdentityFromDump(idp_identity_dump)
idp_disco.buildModifyResponseMsg()
+ offerings = idp_disco.identity.getOfferings()
self.failUnless('<disco:Status code="OK"/>' in idp_disco.msgBody)
- self.failUnless('<disco:ModifyResponse newEntryIDs="1"' in idp_disco.msgBody)
+ self.failUnless('<disco:ModifyResponse newEntryIDs="%s"' % offerings[0].entryId in idp_disco.msgBody)
self.failUnless('<disco:ServiceType>urn:liberty:id-sis-pp:2003-08</disco:ServiceType>' in
idp_disco.identity.dump())
# Process Response
wsp_disco.processModifyResponseMsg(idp_disco.msgBody)
- self.failUnless(wsp_disco.response.newEntryIds == '1')
+ self.failUnless(wsp_disco.response.newEntryIds == '0')
class DiscoveryRemoveTestCase(IdWsf1TestCase):
def test01(self):
@@ -210,7 +211,7 @@ class DiscoveryRemoveTestCase(IdWsf1TestCase):
wsp_disco = lasso.Discovery(self.wsp)
wsp_disco.setIdentityFromDump(sp_identity_dump)
wsp_disco.setSessionFromDump(sp_session_dump)
- wsp_disco.initRemove('1')
+ wsp_disco.initRemove('0')
wsp_disco.buildRequestMsg()
# Process Modify
@@ -219,7 +220,8 @@ class DiscoveryRemoveTestCase(IdWsf1TestCase):
idp_disco = lasso.Discovery(self.idp)
idp_disco.processModifyMsg(wsp_disco.msgBody)
idp_disco.setIdentityFromDump(idp_identity_dump)
- idp_disco.identity.addResourceOffering(self.get_resource_offering())
+ offering = self.get_resource_offering()
+ idp_disco.identity.addResourceOffering(offering)
self.failUnless('<disco:ServiceType>urn:liberty:id-sis-pp:2003-08</disco:ServiceType>' in
idp_disco.identity.dump())
idp_disco.buildModifyResponseMsg()