def test_cacheing(self): obj1 = core.root_dse() obj2 = core.root_dse() self.assertIs(obj1, obj2)
def test_server(self): obj = core.root_dse(server=config.server) self.assertIsInstance(obj, com_object) self.assertEquals(obj.ADsPath, self._expected_moniker("LDAP:"))
def test_server_and_scheme(self): obj = core.root_dse(server=config.server, scheme="GC:") self.assertIsInstance(obj, com_object) self.assertEquals(obj.ADsPath, self._expected_moniker("GC:"))
def test_defaults(self): obj = core.root_dse() self.assertIsInstance(obj, com_object) self.assertEquals(obj.ADsPath, self._expected_moniker("LDAP:"))