incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493384 - /incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py
Date Sat, 06 Jan 2007 05:26:46 GMT
Author: keturn
Date: Fri Jan  5 21:26:45 2007
New Revision: 493384

URL: http://svn.apache.org/viewvc?view=rev&rev=493384
Log:
[python-to-heraldry @ Check assoc_handle against assoc object]

Original author: cygnus@janrain.com
Date: 2006-12-27 19:27:39+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py?view=diff&rev=493384&r1=493383&r2=493384
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_auth_request.py Fri
Jan  5 21:26:45 2007
@@ -60,6 +60,20 @@
         error_message = 'openid.%s unexpectedly present: %s' % (key, actual)
         self.failIf(actual is not None, error_message)
 
+    def test_checkNoAssocHandle(self):
+        self.authreq.assoc = None
+        msg = self.authreq.getMessage(self.realm, self.return_to,
+                                      self.immediate)
+
+        self.failIfOpenIDKeyExists(msg, 'assoc_handle')
+
+    def test_checkWithAssocHandle(self):
+        msg = self.authreq.getMessage(self.realm, self.return_to,
+                                      self.immediate)
+
+        self.failUnlessOpenIDValueEquals(msg, 'assoc_handle',
+                                         self.assoc.handle)
+
     def test_addExtensionArg(self):
         self.authreq.addExtensionArg('bag:', 'color', 'brown')
         self.authreq.addExtensionArg('bag:', 'material', 'paper')



Mime
View raw message