@mock.patch('see.context.resources.vbox.libvirt')
    @mock.patch('see.context.resources.vbox.domain_create')
    @mock.patch('see.context.resources.vbox.domain_delete')
    def test_cleanup(self, delete_mock, create_mock, libvirt_mock):
        resources = vbox.VBoxResources('foo', {'domain': 'bar', 'disk': {'image': '/foo/bar'}})
        resources._domain = mock.Mock()
        resources._hypervisor = mock.Mock()
        resources.cleanup()
        delete_mock.assert_called_with(resources.domain, mock.ANY)
        self.assertTrue(resources._hypervisor.close.called)
Test xl_cell_to_rowcol()
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/vbox_test.py/ResourcesTest.test_cleanup--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/utility/test_xl_cell_to_rowcol.py/TestUtility.test_xl_cell_to_rowcol