def test_compare_fail(self): ld = LDAP(self.env['uri_389']) ld.bind(self.env['root_dn'], self.env['root_pw']) result = ld.compare(self.env['target_user'], self.compare_attribute, 'dummy') self.assertFalse(result)
def test_compare_fail(self): ld = LDAP(self.env['uri_389']) ld.bind(self.env['root_dn'], self.env['root_pw']) result = ld.compare(self.env['modify_user'], self.compare_attribute, 'dummy') self.assertFalse(result)
def test_compare(self): ld = LDAP(self.env['uri_389']) ld.bind(self.env['root_dn'], self.env['root_pw']) result = ld.compare(self.env['target_user'], self.compare_attribute, self.compare_value) self.assertTrue(result)
def test_compare(self): ld = LDAP(self.env['uri_389']) ld.bind(self.env['root_dn'], self.env['root_pw']) result = ld.compare(self.env['modify_user'], self.compare_attribute, self.compare_value) self.assertTrue(result)