@testhelp.context('sysmodel')
    def testLocalLabelDeps(self):
        csPath = self.workDir + '/foo.ccs'
        csPath1 = self.workDir + '/foo1.ccs'
        csPath2 = self.workDir + '/foo2.ccs'

        self.addComponent('local:runtime', 'local@local:COOK',
                          changeSetFile = csPath)
        self.addComponent('local:debug', 'local@local:COOK',
                          changeSetFile = csPath1)
        pkg = self.addCollection('local=local@local:COOK',
                                 [ ':runtime', (':debug', False) ],
                                 changeSetFile = csPath2)

        cs = changeset.ChangeSetFromFile(csPath)
        os.unlink(csPath)
        cs.merge(changeset.ChangeSetFromFile(csPath1))
        cs.merge(changeset.ChangeSetFromFile(csPath2))
        cs.setPrimaryTroveList( [ pkg.getNameVersionFlavor() ] )
        cs.writeToFile(csPath)

        self.updatePkg(self.rootDir, csPath)

        self.addComponent('foo:runtime=1.0',
                          requires = 'trove: bar')
        self.addCollection('foo=1.0', [ ':foo' ])
        self.assertRaises(update.DepResolutionFailure,
              self._applyModel,
                    [ 'install local=%s' % pkg.getVersion(),
                      'install foo:runtime=%s' % self.cfg.buildLabel, ],
                      addSearchLabel = True)
dataset/ETHPy150Open sassoftware/conary/conary_test/clienttest/modelupdatetest.py/ModelUpdateTest.testLocalLabelDeps/original