def _create_instance(**kwargs):
 ctxt = context_maker.get_admin_context()
 return db.instance_create(ctxt, _create_instance_dict(**kwargs))

def _create_instance ( ** kwargs ) : ctxt = context_maker . get_admin_context ( ) return db . instance_create ( ctxt , _create_instance_dict ( ** kwargs ) )
create a test instance .