#NEWLINE# def i_create_a_dataset_with( step , data = '{}' ) : #NEWLINE# #INDENT# resource = world . api . create_dataset ( world . source [ 'resource' ] , json . loads ( data ) ) #NEWLINE# world . status = step [ 'code' ] #NEWLINE# assert ( world . status == HTTP_CREATED ) #NEWLINE# world . location = resource [ 'location' ] #NEWLINE# world . dataset = resource [ 'object' ] #NEWLINE# world . datasets . append ( resource [ 'resource' ] )