def _testBasic1(self, built, info):
        self.updatePkg(self.rootDir, 'info-%(user)s' % info)
        self.updatePkg(self.rootDir, 'testcase')

        (fd, path) = tempfile.mkstemp()
        os.close(fd)

        self.writeFile(self.rootDir + "/etc/changedconfig", 'new contents\n')
        self.writeFile(self.rootDir + "/usr/share/changed", 
                       'more contents\n')
        os.chmod(self.rootDir + "/usr/bin/hello", 0700)
        self.localChangeset(self.rootDir, 'testcase', path)

        self.resetRoot()
        self.updatePkg(self.rootDir, 'info-%(user)s' % info)
        self.updatePkg(self.rootDir, 'testcase')
        self.updatePkg(self.rootDir, path)

        self.verifyFile(self.rootDir + "/etc/changedconfig",
                        'new contents\n')
        self.verifyFile(self.rootDir + "/usr/share/changed",
                        'more contents\n')
        assert((os.stat(self.rootDir + "/usr/bin/hello").st_mode & 0700) 
                            == 0700)
        self.erasePkg(self.rootDir, 'testcase')
        return path
dataset/ETHPy150Open sassoftware/conary/conary_test/localcstest.py/LocalCsTest._testBasic1/original