incubator-heraldry-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=493416
Log:
[python-to-heraldry @ test.test_server.TestSignatory.test_getAssocNormalVsDumb: fixes #1590]

Original author: Kevin Turner <kevin@janrain.com>
Date: 2006-12-16 03:08:27+00:00

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

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py?view=diff&rev=493416&r1=493415&r2=493416
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_server.py Fri Jan  5
21:29:10 2007
@@ -1415,9 +1415,23 @@
         self.failIf(self.messages, self.messages)
 
     def test_getAssocDumbVsNormal(self):
+        """getAssociation(dumb=False) cannot get a dumb assoc"""
         assoc_handle = self.makeAssoc(dumb=True)
         self.failUnlessEqual(
             self.signatory.getAssociation(assoc_handle, dumb=False), None)
+        self.failIf(self.messages, self.messages)
+
+    def test_getAssocNormalVsDumb(self):
+        """getAssociation(dumb=True) cannot get a shared assoc
+
+        From "Verifying Directly with the OpenID Provider"::
+
+            An OP MUST NOT verify signatures for associations that have shared
+            MAC keys.
+        """
+        assoc_handle = self.makeAssoc(dumb=False)
+        self.failUnlessEqual(
+            self.signatory.getAssociation(assoc_handle, dumb=True), None)
         self.failIf(self.messages, self.messages)
 
     def test_createAssociation(self):



Mime
View raw message