#NEWLINE# def i_create_a_source_from_batch_prediction( step ) : #NEWLINE# #INDENT# batch_prediction = world . batch_prediction . get ( 'resource' ) #NEWLINE# resource = world . api . source_from_batch_prediction ( batch_prediction ) #NEWLINE# world . status = resource [ 'code' ] #NEWLINE# assert ( world . status == HTTP_CREATED ) #NEWLINE# world . location = resource [ 'location' ] #NEWLINE# world . source = resource [ 'object' ] #NEWLINE# world . sources . append ( resource [ 'resource' ] )