def test_scheme(self): self.assertEquals(core.root_moniker(scheme="GC:"), self._expected(scheme="GC:"))
def test_server(self): self.assertEquals(core.root_moniker(server=self.server), self._expected(server=self.server))
def _test(self, *args, **kwargs): root_obj = core.root_obj(cred=config.cred, *args, **kwargs) self.assertIsInstance(root_obj, com_object) self.assertEquals(root_obj.ADsPath, core.root_moniker(*args, **kwargs))
def test_defaults(self): self.assertEquals(core.root_moniker(), self._expected())
def test_cacheing(self): self.assertIs(core.root_moniker(), core.root_moniker())