def test_create(self):
        xml = """<domain></domain>"""
        expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" +\
                   """<source file="/diskpath.qcow2" /></disk></devices></domain>"""
        hypervisor = mock.Mock()
        hypervisor.listNetworks.return_value = []
        with mock.patch('see.context.resources.qemu.open', mock.mock_open(read_data=xml), create=True):
            qemu.domain_create(hypervisor, 'foo', {'configuration': '/foo'}, '/diskpath.qcow2')
        results = hypervisor.defineXML.call_args_list[0][0][0]
        self.assertEqual(results, expected, compare(results, expected))
Deletes the management lock of a resource or any level below resource.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/DomainCreateTest.test_create--crossover with--dataset/ETHPy150Open Azure/azure-sdk-for-python/azure-mgmt-resource/azure/mgmt/resource/locks/operations/management_locks_operations.py/ManagementLocksOperations.delete_at_resource_level