#NEWLINE# @ property #NEWLINE# def fake_instance( self ) : #NEWLINE# #INDENT# db_inst = fake_instance . fake_db_instance ( id = 2 , access_ip_v4 = '1.2.3.4' , access_ip_v6 = '::1' ) #NEWLINE# db_inst [ 'uuid' ] = uuids . db_instance #NEWLINE# db_inst [ 'cell_name' ] = 'api!child' #NEWLINE# db_inst [ 'terminated_at' ] = None #NEWLINE# db_inst [ 'deleted_at' ] = None #NEWLINE# db_inst [ 'created_at' ] = None #NEWLINE# db_inst [ 'updated_at' ] = None #NEWLINE# db_inst [ 'launched_at' ] = datetime . datetime ( 1955 , 11 , 12 , 22 , 4 , 0 ) #NEWLINE# db_inst [ 'deleted' ] = False #NEWLINE# db_inst [ 'security_groups' ] = [ ] #NEWLINE# db_inst [ 'pci_devices' ] = [ ] #NEWLINE# db_inst [ 'user_id' ] = self . context . user_id #NEWLINE# db_inst [ 'project_id' ] = self . context . project_id #NEWLINE# db_inst [ 'tags' ] = [ ] #NEWLINE# db_inst [ 'info_cache' ] = dict ( test_instance_info_cache . fake_info_cache , instance_uuid = db_inst [ 'uuid' ] ) #NEWLINE# db_inst [ 'system_metadata' ] = { #NEWLINE# #INDENT# 'image_name' : 'os2-warp' , #NEWLINE# 'image_min_ram' : 100 , #NEWLINE# 'image_hw_disk_bus' : 'ide' , #NEWLINE# 'image_hw_vif_model' : 'ne2k_pci' , #NEWLINE# #UNINDENT# } #NEWLINE# return self