def testTarPermissions(self):
        r = policytest.DummyRecipe(self.cfg)
        os.mkdir('/'.join((r.macros.builddir, r.theMainDir)))
        # add an archive that has a file with group write permissions
        a = source.Archive(r, 'group-write.tar.gz', dir='/')
        a.doAction()
        sb = os.stat(r.macros.destdir + '/foo/foo')
        # make sure that the group write bit is set
        assert(sb.st_mode & stat.S_IWGRP)