예제 #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')
예제 #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')
예제 #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')