def create_root_test(self): """Test payload create root directory function.""" with TemporaryDirectory() as temp: create_root_dir(temp) root_dir = os.path.join(temp, "/root") self.assertTrue(os.path.isdir(root_dir))
def run(self): """Create a root and write module blacklist.""" create_root_dir(self._sysroot) write_module_blacklist(self._sysroot)