incubator-heraldry-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=493397
Log:
[python-to-heraldry @ Add successful _negotiateAssociation test]

Original author: cygnus@janrain.com
Date: 2006-12-27 23:44:29+00:00

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

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_consumer.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_consumer.py?view=diff&rev=493397&r1=493396&r2=493397
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_consumer.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_consumer.py Fri Jan
 5 21:27:46 2007
@@ -1537,5 +1537,12 @@
         self.consumer.return_messages = [msg, assoc]
         self.assertTrue(self.consumer._negotiateAssociation(self.endpoint) is assoc)
 
+    def testValid(self):
+        assoc = association.Association(
+            'handle', 'secret', 'issued', 10000, 'HMAC-SHA1')
+
+        self.consumer.return_messages = [assoc]
+        self.assertTrue(self.consumer._negotiateAssociation(self.endpoint) is assoc)
+
 if __name__ == '__main__':
     unittest.main()



Mime
View raw message