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