def test_openID1Defined_1_0_overrideAlias(self):
        for openid_version in [True, False]:
            for sreg_version in [sreg.ns_uri_1_0, sreg.ns_uri_1_1]:
                for alias in ['sreg', 'bogus']:
                    self.setUp()

                    self.msg.openid1 = openid_version
                    self.msg.namespaces.addAlias(sreg_version, alias)
                    ns_uri = sreg.getSRegNS(self.msg)
                    self.failUnlessEqual(self.msg.namespaces.getAlias(ns_uri), alias)
                    self.failUnlessEqual(sreg_version, ns_uri)
 def test_openID1Defined_1_0(self):
     self.msg.openid1 = True
     self.msg.namespaces.add(sreg.ns_uri_1_0)
     ns_uri = sreg.getSRegNS(self.msg)
     self.failUnlessEqual(sreg.ns_uri_1_0, ns_uri)
Beispiel #3
0
 def test_openID1Defined_1_0(self):
     self.msg.openid1 = True
     self.msg.namespaces.add(sreg.ns_uri_1_0)
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(ns_uri, sreg.ns_uri_1_0)
 def test_openID1Empty(self):
     self.msg.openid1 = True
     ns_uri = sreg.getSRegNS(self.msg)
     self.failUnlessEqual(self.msg.namespaces.getAlias(ns_uri), 'sreg')
     self.failUnlessEqual(sreg.ns_uri, ns_uri)
Beispiel #5
0
 def test_openID1Defined_1_0(self):
     self.msg.openid1 = True
     self.msg.namespaces.add(sreg.ns_uri_1_0)
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(ns_uri, sreg.ns_uri_1_0)
Beispiel #6
0
 def test_openID1Empty(self):
     self.msg.openid1 = True
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(self.msg.namespaces.getAlias(ns_uri), 'sreg')
     self.assertEqual(ns_uri, sreg.ns_uri)
Beispiel #7
0
 def test_openID1Empty(self):
     self.msg.openid1 = True
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(self.msg.namespaces.getAlias(ns_uri), 'sreg')
     self.assertEqual(ns_uri, sreg.ns_uri)
Beispiel #8
0
 def test_openID2Empty(self):
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(self.msg.namespaces.getAlias(ns_uri), "sreg")
     self.assertEqual(sreg.ns_uri, ns_uri)
Beispiel #9
0
 def test_openID2Defined_1_0(self):
     self.msg.namespaces.add(sreg.ns_uri_1_0)
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(sreg.ns_uri_1_0, ns_uri)
Beispiel #10
0
 def test_openID2Empty(self):
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(self.msg.namespaces.getAlias(ns_uri), 'sreg')
     self.assertEqual(sreg.ns_uri, ns_uri)
Beispiel #11
0
 def test_openID2Defined_1_0(self):
     self.msg.namespaces.add(sreg.ns_uri_1_0)
     ns_uri = sreg.getSRegNS(self.msg)
     self.assertEqual(sreg.ns_uri_1_0, ns_uri)