@mock.patch('see.context.resources.vbox.libvirt')
    @mock.patch('see.context.resources.vbox.domain_create')
    def test_initialize_hypervisor(self, create_mock, libvirt_mock):
        resources = vbox.VBoxResources('foo', {'domain': 'bar', 'hypervisor': 'baz', 'disk': {'image': '/foo/bar'}})
        libvirt_mock.open.assert_called_with('baz')
        create_mock.assert_called_with(resources.hypervisor, 'foo', 'bar', '/foo/bar')
If the last task in a Cooperator is removed, the scheduled call for
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/vbox_test.py/ResourcesTest.test_initialize_hypervisor--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/CooperatorTests.test_removingLastTaskStopsScheduledCall