qubes-installer-qubes-os/anaconda/tests/pyanaconda_test/packages_test.py
2013-01-24 01:45:53 +01: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)