def testOverrideChangeSetVersion(self):
        self.addComponent('foo:run', '1')
        self.addCollection('foo', '1', [':run'])
        c = conaryclient.ConaryClient(self.cfg)
        dest = os.path.join(self.workDir, "test.ccs")
        ver = versions.VersionFromString('/%s/1-1-1' % str(self.defLabel))
        csVersion = changeset.getNativeChangesetVersion(42)
        c.repos.createChangeSetFile([('foo', (None, None),
                                     (ver, deps.parseFlavor('')), True)],
                                     dest, changesetVersion = csVersion)
        fcont = filecontainer.FileContainer(util.ExtendedFile(
            dest, buffering = False))
        self.assertEqual(fcont.version, csVersion)
dataset/ETHPy150Open sassoftware/conary/conary_test/repositorytest/netclienttest.py/ServerProxyTest.testOverrideChangeSetVersion/original