qubes/tests/int/tools/qubes_create: fix wrong assert

This commit is contained in:
Wojtek Porczyk 2015-12-23 14:31:41 +01:00
parent 5c57b4cda7
commit ec50a411fe

View File

@ -31,17 +31,13 @@ import qubes.tests
@qubes.tests.skipUnlessDom0
class TC_00_qubes_create(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase):
def test_000_basic(self):
self.assertEqual(0,
qubes.tools.qubes_create.main((
'--qubesxml', qubes.tests.XMLPATH,
)))
self.assertTrue(qubes.tools.qubes_create.main((
'--qubesxml', qubes.tests.XMLPATH)))
def test_001_property(self):
self.assertEqual(0,
qubes.tools.qubes_create.main((
'--qubesxml', qubes.tests.XMLPATH,
'--property', 'default_kernel=testkernel'
)))
self.assertTrue(qubes.tools.qubes_create.main((
'--qubesxml', qubes.tests.XMLPATH,
'--property', 'default_kernel=testkernel')))
self.assertEqual('testkernel',
qubes.Qubes(qubes.tests.XMLPATH).default_kernel)