#NEWLINE# def i_create_a_cluster( step ) : #NEWLINE# #INDENT# dataset = world . dataset . get ( 'resource' ) #NEWLINE# resource = world . api . create_cluster ( dataset , { #NEWLINE# #INDENT# 'seed' : 'BigML' , #NEWLINE# 'cluster_seed' : 'BigML' , #NEWLINE# 'k' : 8 , #NEWLINE# #UNINDENT# } ) #NEWLINE# world . status = step [ 'code' ] #NEWLINE# assert ( world . status == HTTP_CREATED ) #NEWLINE# world . location = resource [ 'location' ] #NEWLINE# world . cluster = resource [ 'object' ] #NEWLINE# world . clusters . append ( resource [ 'resource' ] )