Ejemplo n.º 1
0
 def setUp(self):
     """ Called at the start of each test. """
     _DepsolveTestsBase.setUp(self)
     self.tsInfo = transactioninfo.TransactionData()
     self.tsInfo.debug = 1
     self.rpmdb = FakeRpmDb()
     self.xsack = packageSack.PackageSack()
     self.repo = FakeRepo("installed")
     # XXX this side-affect is hacky:
     self.tsInfo.setDatabases(self.rpmdb, self.xsack)
    def setUp(self):
        repo = DummyRepo("rhel-4")

        self.pkg_tup = ("zsh", "0.1", "EL3", "0", "noarch", "23456533",
                        "rhel-4")
        self.package = DummyPackageObject(self.pkg_tup, "/Fake/Location", repo)

        self.old_pkg_tup = ("figgle", "0.1", "EL3", "0", "noarch", "23456533",
                            "rhel-4")
        self.old_package = DummyPackageObject(self.old_pkg_tup,
                                              "/Fake/Location", repo)

        self.ts_info = transactioninfo.TransactionData()
Ejemplo n.º 3
0
 def resetTsInfo(self):
     self.tsInfo = transactioninfo.TransactionData()