Ejemplo n.º 1
0
 def test_cacheing(self):
     obj1 = core.root_dse()
     obj2 = core.root_dse()
     self.assertIs(obj1, obj2)
Ejemplo n.º 2
0
 def test_server(self):
     obj = core.root_dse(server=config.server)
     self.assertIsInstance(obj, com_object)
     self.assertEquals(obj.ADsPath, self._expected_moniker("LDAP:"))
Ejemplo n.º 3
0
 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:"))
Ejemplo n.º 4
0
 def test_defaults(self):
     obj = core.root_dse()
     self.assertIsInstance(obj, com_object)
     self.assertEquals(obj.ADsPath, self._expected_moniker("LDAP:"))