Ejemplo n.º 1
0
 def testComplexACL(self):
     cn = "Name1 Name2"
     token = "xyz"
     dn = ShibUser.shib2dn(self.complexACL, cn = cn, token = token, idp = self.aucklandIdp)
     self.assertEqual(dn, self.aucklandDn + "/CN=" + cn + " " + token)
Ejemplo n.º 2
0
 def testSimpleACL(self):
     cn = "First Second"
     token = "abc"
     dn = ShibUser.shib2dn(self.simpleACL, token = token, cn = cn, idp = self.canterburyIdp)
     self.assertEqual(dn, self.canterburyDn + "/CN=" + cn + " " + token)