Issue #1666318: Add a test that shutil.copytree() retains directory permissions.
Patch by Catherine Devlin.