def test_create_file_with_content_with_extra(self): temp_folder = self.get_tmp_folder() test_file = temp_folder + os.sep + "test.file" self.ensure_file_does_not_exist(test_file) AdminTool.create_file_with_content(test_file, "test data", extra="Extra") self.assertTrue(os.path.exists(test_file)) self.ensure_file_does_not_exist(test_file)
def test_make_executable(self): temp_folder = self.get_tmp_folder() test_file = temp_folder + os.sep + "test.file" self.ensure_file_does_not_exist(test_file) AdminTool.create_file_with_content(test_file, "test data") AdminTool.make_executable(test_file) self.assertTrue(os.path.exists(test_file)) self.ensure_file_does_not_exist(test_file)