def test_server(self): all_attributes = set( i.ldapDisplayName for i in core.schema_obj(server=config.server, cred=config.cred) if i.Class == "attributeSchema" ) attributes = core.attributes(server=config.server, cred=config.cred) self.assertSetEqual(all_attributes, set(name for name, _ in attributes)) self.assertTrue(all(i.Class == "attributeSchema" for i in attributes))
def test_server(self): schema_obj = core.schema_obj(config.server, cred=config.cred) self.assertIsInstance(schema_obj, com_object) self.assertEquals(schema_obj.ADsPath, self._expected(config.server))
def test_defaults(self): schema_obj = core.schema_obj(cred=config.cred) self.assertIsInstance(schema_obj, com_object) self.assertEquals(schema_obj.ADsPath, self._expected())