Esempio n. 1
0
 def test_update_gpo_simple(self):
     dir = getpolicypath(self.paths.sysvol, self.names.dnsdomain,
             self.names.policyid)
     shutil.rmtree(dir)
     self.assertFalse(os.path.isdir(dir))
     update_gpo(self.paths, self.ldbs.sam, self.names, self.lp, dummymessage)
     self.assertTrue(os.path.isdir(dir))
Esempio n. 2
0
 def test_update_gpo_simple(self):
     dir = getpolicypath(self.paths.sysvol, self.names.dnsdomain,
             self.names.policyid)
     shutil.rmtree(dir)
     self.assertFalse(os.path.isdir(dir))
     update_gpo(self.paths, self.ldbs.sam, self.names, self.lp, dummymessage)
     self.assertTrue(os.path.isdir(dir))
Esempio n. 3
0
 def test_update_gpo_acl(self):
     path = os.path.join(self.tempdir, "testupdategpo")
     save = self.paths.sysvol
     self.paths.sysvol = path
     os.mkdir(path)
     os.mkdir(os.path.join(path, self.names.dnsdomain))
     os.mkdir(os.path.join(os.path.join(path, self.names.dnsdomain), "Policies"))
     update_gpo(self.paths, self.ldbs.sam, self.names, self.lp, dummymessage)
     shutil.rmtree(path)
     self.paths.sysvol = save
Esempio n. 4
0
 def test_update_gpo_acl(self):
     path = os.path.join(self.tempdir, "testupdategpo")
     save = self.paths.sysvol
     self.paths.sysvol = path
     os.mkdir(path)
     os.mkdir(os.path.join(path, self.names.dnsdomain))
     os.mkdir(os.path.join(os.path.join(path, self.names.dnsdomain),
         "Policies"))
     update_gpo(self.paths, self.ldbs.sam, self.names, self.lp, dummymessage)
     shutil.rmtree(path)
     self.paths.sysvol = save