#NEWLINE# def test_create_singlenode( self ) : #NEWLINE# #INDENT# configs = objects . OpenstackConfigCollection . create ( { #NEWLINE# #INDENT# 'cluster_id' : self . cluster . id , #NEWLINE# 'node_ids' : [ self . nodes [ 0 ] . id ] , #NEWLINE# 'configuration' : { #NEWLINE# #INDENT# 'key' : 'value' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( len ( configs ) , 1 ) #NEWLINE# self . assertEqual ( configs [ 0 ] . cluster_id , self . cluster . id ) #NEWLINE# self . assertEqual ( configs [ 0 ] . config_type , consts . OPENSTACK_CONFIG_TYPES . node ) #NEWLINE# self . assertEqual ( configs [ 0 ] . node_id , configs . nodes [ 0 ] . id )