def test_create(self):
        xml = """<domain></domain>"""
        expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" +\
                   """<source file="/diskpath.vdi" /></disk></devices></domain>"""
        hypervisor = mock.Mock()
        hypervisor.listNetworks.return_value = []
        with mock.patch('see.context.resources.vbox.open', mock.mock_open(read_data=xml), create=True):
            vbox.domain_create(hypervisor, 'foo', {'configuration': '/foo'}, '/diskpath.vdi')
        results = hypervisor.defineXML.call_args_list[0][0][0]
        self.assertEqual(results, expected, compare(results, expected))
Returns a list of constraints that match the given Chunk.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/vbox_test.py/DomainCreateTest.test_create--crossover with--dataset/ETHPy150Open clips/pattern/pattern/text/search.py/Match.constraints