예제 #1
0
 def test_07_testconnection(self):
     ldap3mock.setLDAPDirectory(LDAPDirectory)
     (success, desc) = LdapMachineResolver.testconnection(MYCONFIG)
     self.assertTrue(success)
     self.assertEqual(
         desc, "Your LDAP config seems to be OK, 3 "
         "machine objects found.")
 def test_07_testconnection(self):
     ldap3mock.setLDAPDirectory(LDAPDirectory)
     (success, desc) = LdapMachineResolver.testconnection(MYCONFIG)
     self.assertTrue(success)
     self.assertTrue("3" in desc)
 def test_07_testconnection(self):
     ldap3mock.setLDAPDirectory(LDAPDirectory)
     (success, desc) = LdapMachineResolver.testconnection(MYCONFIG)
     self.assertTrue(success)
     self.assertTrue("3" in desc)
 def test_07_testconnection(self):
     ldap3mock.setLDAPDirectory(LDAPDirectory)
     (success, desc) = LdapMachineResolver.testconnection(MYCONFIG)
     self.assertTrue(success)
     self.assertEqual(desc, "Your LDAP config seems to be OK, 3 "
                            "machine objects found.")