def _create_instance(**kwargs):
    ctxt = context_maker.get_admin_context()
    return db.instance_create(ctxt, _create_instance_dict(**kwargs))
Create a test instance.
dataset/ETHPy150Open openstack/nova/nova/tests/unit/api/openstack/compute/test_hosts.py/_create_instance