#NEWLINE# def test_node_set_provision_state_with_configdrive( self ) : #NEWLINE# #INDENT# target_state = 'active' #NEWLINE# self . mgr . set_provision_state ( NODE1 [ 'uuid' ] , target_state , configdrive = 'foo' ) #NEWLINE# body = { #NEWLINE# #INDENT# 'target' : target_state , #NEWLINE# 'configdrive' : 'foo' , #NEWLINE# #UNINDENT# } #NEWLINE# expect = [ ( 'PUT' , ( '/v1/nodes/%s/states/provision' % NODE1 [ 'uuid' ] ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , body ) ] #NEWLINE# self . assertEqual ( expect , self . api . calls )