'Archive.extract() preserves file permissions.'

@unittest.skipIf((sys.platform == 'win32'), 'Python    on    Windows    has    a    limited    os.chmod().')
def test_extract_file_permissions(self):

    extract(self.archive_path, self.tmpdir)
    filepath = os.path.join(self.tmpdir, 'executable')
    self.assertTrue((os.stat(filepath).st_mode & stat.S_IXOTH))
    filepath = os.path.join(self.tmpdir, 'no_permissions')
    self.assertTrue((os.stat(filepath).st_mode & stat.S_IROTH))
