def testTimestamps(self):
        """
        Ensure that the repository is resetting timestamps proprely.
        """
        # create an absolute changeset
        flavor = deps.parseFlavor('')
        cs = changeset.ChangeSet()
        # add a pkg diff
        v = versions.VersionFromString('/localhost@foo:bar/1.2-1-2',
                                       timeStamps=[1.000])
        pkg = trove.Trove('test', v, flavor, None)
        pkg.troveInfo.sourceName.set('test:source')
        pkg.addTrove('test:foo', v, flavor, byDefault=True)
        pkg.computeDigests()

        # add the 'test' package
        diff = pkg.diff(None)[0]
        cs.newTrove(diff)
        cs.addPrimaryTrove('test', v, flavor)

        # add the test:foo component
        foo = trove.Trove('test:foo', v, flavor, None)
        pkg.troveInfo.sourceName.set('test:source')
        foo.computeDigests()
        diff = foo.diff(None)[0]
        cs.newTrove(diff)

        repos = self.openRepository()
        now = time.time()

        from conary.cmds.updatecmd import UpdateCallback
        callback = UpdateCallback()
        repos.commitChangeSet(cs, callback=callback)

        trvs = repos.getTroves([('test', v, flavor), ('test:foo', v, flavor)])
        assert(trvs[0].getVersion().trailingRevision().getTimestamp() ==
               trvs[1].getVersion().trailingRevision().getTimestamp())
        assert(now >= trvs[0].getVersion().trailingRevision().getTimestamp())
dataset/ETHPy150Open sassoftware/conary/conary_test/repositorytest/netclienttest.py/NetclientTest.testTimestamps/swapped operands of `>=`