tests: fix after moving VMCollection to qubes.app

This commit is contained in:
Marek Marczykowski-Górecki 2016-05-20 04:22:28 +02:00 committed by Wojtek Porczyk
parent c965024287
commit 07b72ef3fd
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ class TestApp(qubes.tests.TestEmitter):
class TC_30_VMCollection(qubes.tests.QubesTestCase):
def setUp(self):
self.app = TestApp()
self.vms = qubes.VMCollection(self.app)
self.vms = qubes.app.VMCollection(self.app)
self.testvm1 = TestVM(None, None, qid=1, name='testvm1')
self.testvm2 = TestVM(None, None, qid=2, name='testvm2')

View File

@ -46,7 +46,7 @@ class TC_00_NetVMMixin(
provides_network=True)
self.nonetvm = qubes.vm.qubesvm.QubesVM(self.app, None, qid=4,
name=qubes.tests.VMPREFIX + 'nonet')
self.app.domains = qubes.VMCollection(self.app)
self.app.domains = qubes.app.VMCollection(self.app)
for domain in (vm, self.netvm1, self.netvm2, self.nonetvm):
self.app.domains._dict[domain.qid] = domain
self.app.default_netvm = self.netvm1