123456789101112131415161718 |
- def test_make_executable(self):
- tmp_dir = self.get_temp_dir() + os.sep +"programy"
- if os.path.exists(tmp_dir):
- shutil.rmtree(tmp_dir)
- os.mkdir(tmp_dir)
- filepath = tmp_dir + os.sep + "file1.txt"
- self.create_file(filepath)
- self.assertTrue(os.path.exists(filepath))
- AdminTool.make_executable(filepath)
- if os.path.exists(tmp_dir):
- shutil.rmtree(tmp_dir)
|