Home | Trees | Indices | Help |
|
---|
|
1 from openid import extension 2 from openid import message 3 4 import unittest 5 123715 oid1_msg = message.Message(message.OPENID1_NS) 16 ext = DummyExtension() 17 ext.toMessage(oid1_msg) 18 namespaces = oid1_msg.namespaces 19 self.failUnless(namespaces.isImplicit(DummyExtension.ns_uri)) 20 self.failUnlessEqual( 21 DummyExtension.ns_uri, 22 namespaces.getNamespaceURI(DummyExtension.ns_alias)) 23 self.failUnlessEqual(DummyExtension.ns_alias, 24 namespaces.getAlias(DummyExtension.ns_uri))2527 oid2_msg = message.Message(message.OPENID2_NS) 28 ext = DummyExtension() 29 ext.toMessage(oid2_msg) 30 namespaces = oid2_msg.namespaces 31 self.failIf(namespaces.isImplicit(DummyExtension.ns_uri)) 32 self.failUnlessEqual( 33 DummyExtension.ns_uri, 34 namespaces.getNamespaceURI(DummyExtension.ns_alias)) 35 self.failUnlessEqual(DummyExtension.ns_alias, 36 namespaces.getAlias(DummyExtension.ns_uri))
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 29 15:11:37 2010 | http://epydoc.sourceforge.net |