Ejemplo n.º 1
0
 def test_preprocess_dn(self):
     dn = '/THIRD=c/SECOND=b/FIRST=a'
     dn = pkiauth._preprocess_dn(dn)
     self.assertEqual(dn, 'FIRST=a, SECOND=b, THIRD=c')
Ejemplo n.º 2
0
 def test_preprocess_dn(self):
     dn = '/THIRD=c/SECOND=b/FIRST=a'
     dn = pkiauth._preprocess_dn(dn)
     self.assertEqual(dn, 'FIRST=a, SECOND=b, THIRD=c')
Ejemplo n.º 3
0
 def test_preprocess_dn_ldap_space(self):
     dn = 'FIRST=a, SECOND=b, THIRD=c'
     dn = pkiauth._preprocess_dn(dn)
     self.assertEqual(dn, 'FIRST=a, SECOND=b, THIRD=c')