qubes-installer-qubes-os/anaconda/old_tests/pyanaconda_test/packages_test.py
Marek Marczykowski-Górecki f73b3741f0 Update anaconda to 20.25.16
Apply result of "git diff anaconda-18.37.11-1..anaconda-20.25.16-1" and
resolve conflicts.
2014-04-08 05:50:31 +02:00

26 lines
725 B
Python

#!/usr/bin/python
import mock
class PackagesTest(mock.TestCase):
def setUp(self):
self.setupModules(["_isys", "block", "logging", "parted", "storage",
"pyanaconda.storage.formats", "ConfigParser",
"pyanaconda.storage.storage_log"])
self.fs = mock.DiskIO()
import pyanaconda
pyanaconda.anaconda_log = mock.Mock()
import pyanaconda.packages
def tearDown(self):
self.tearDownModules()
def do_post_action_test(self):
import pyanaconda.packages
anaconda = mock.Mock()
pyanaconda.packages.doPostAction(anaconda)
self.assertTrue(anaconda.instClass.postAction.called)