shutil copy example Example 1: install shutil pip install pytest-shutil Example 2: python copy file from shutil import copyfile copyfile(src, dst)