qubes-installer-qubes-os/anaconda/tests/logpicker_test/logmining_test/dmsetuplslogminer_test.py
2013-01-24 01:45:53 +01:00

20 lines
454 B
Python

import mock
class DmSetupLsLogMinerTest(mock.TestCase):
def setUp(self):
self.setupModules([])
self.fs = mock.DiskIO()
def tearDown(self):
self.tearDownModules()
def action_test(self):
import log_picker.logmining as logmining
obj = logmining.DmSetupLsLogMiner()
obj._run_command = mock.Mock()
obj._action()
self.assertTrue(obj._run_command.called)