incubator-heraldry-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=493338
Log:
[python-to-heraldry @ Make the type URI checking stricter and simpler in test_discover]

Original author: Josh Hoyt <josh@janrain.com>
Date: 2006-12-20 00:13:25+00:00

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

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py?view=diff&rev=493338&r1=493337&r2=493338
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py Fri Jan
 5 21:22:41 2007
@@ -208,15 +208,8 @@
             '2.0 OP': discover.OPENID_IDP_2_0_TYPE,
             }
 
-        it = iter(service.type_uris)
-        for type_code in types:
-            type_uri = openid_types[type_code]
-            for t in it:
-                if t == type_uri:
-                    break
-            else:
-                self.fail('Did not find types %r in %r'
-                          % (types, service.type_uris))
+        type_uris = [openid_types[t] for t in types]
+        self.failUnlessEqual(type_uris, service.type_uris)
 
     def test_404(self):
         self.failUnlessRaises(DiscoveryFailure,



Mime
View raw message