@testhelp.context('sysmodel')
    def testInclude(self):
        self.addComponent("foo:runtime=1.0",
                          fileContents = [ ( '/foo', '1.0')  ])
        self.addCollection("foo=1.0", [ ":runtime" ])

        self.addComponent("inctrove:cml", fileContents = [
                    ( "/some/path/to.cml", "install foo\n" ) ] )
        self.addCollection("inctrove=1.0", [ ":cml" ])

        self._applyModel(
                [ 'search %s'% self.cfg.buildLabel,
                  'include inctrove:cml' ],
                addSearchLabel = False)
        self.verifyFile(self.rootDir + '/foo', '1.0')

        self.resetRoot()

        self._applyModel(
                [ 'search %s'% self.cfg.buildLabel,
                  'include inctrove' ],
                addSearchLabel = False)
        self.verifyFile(self.rootDir + '/foo', '1.0')

        self.addComponent("inctrove:source", fileContents = [
                    ( "some.cml", "install foo\n" ),
                    ( "some.recipe", "\n") ] )
        self._applyModel(
                [ 'search %s'% self.cfg.buildLabel,
                  'include inctrove:source' ],
                addSearchLabel = False)
        self.verifyFile(self.rootDir + '/foo', '1.0')
dataset/ETHPy150Open sassoftware/conary/conary_test/clienttest/modelupdatetest.py/ModelUpdateTest.testInclude/original