~canonical-platform-qa/ubuntu-system-tests/qemu-build-snap

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/selftests/test_qemu.py

  • Committer: Omer Akram
  • Date: 2016-12-05 16:36:34 UTC
  • mfrom: (487.4.1 old-trunk)
  • Revision ID: om26er@ubuntu.com-20161205163634-ixv4q21jfwx8ggi5
Substantially fix trunk history

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    patch,
27
27
)
28
28
 
29
 
from ubuntu_system_tests import selftests
30
29
from ubuntu_system_tests.host import qemu
31
 
from ubuntu_system_tests.selftests import DummyArgs
 
30
from ubuntu_system_tests.selftests.utils import DummyArgs, ConfigBaseTestCase
32
31
 
33
32
 
34
33
class DummyPopenArgs(DummyArgs):
49
48
        pass
50
49
 
51
50
 
52
 
class QemuTestCase(selftests.ConfigBaseTestCase):
 
51
class QemuTestCase(ConfigBaseTestCase):
53
52
 
54
53
    popen_files_1 = DummyPopenArgs(stdout='/tmp/file_1\n/tmp/file_2')
55
54
    popen_files_2 = DummyPopenArgs(stdout='/tmp/file_3\n/tmp/file_4')
267
266
        mock_check_call.assert_has_calls(launch_qemu_expected_calls)
268
267
 
269
268
 
270
 
class QemuPreseedContentTestCase(selftests.ConfigBaseTestCase,
 
269
class QemuPreseedContentTestCase(ConfigBaseTestCase,
271
270
                                 testscenarios.TestWithScenarios):
272
271
 
273
272
    scenarios = [
306
305
            0)
307
306
 
308
307
 
309
 
class QemuPathTestCase(selftests.ConfigBaseTestCase,
 
308
class QemuPathTestCase(ConfigBaseTestCase,
310
309
                       testscenarios.TestWithScenarios):
311
310
 
312
311
    scenarios = [
329
328
        mock_check_output.assert_called_once_with(['which', self.name])
330
329
 
331
330
 
332
 
class DisplayOptionsTestCase(selftests.ConfigBaseTestCase,
 
331
class DisplayOptionsTestCase(ConfigBaseTestCase,
333
332
                             testscenarios.TestWithScenarios):
334
333
 
335
334
    scenarios = [