#NEWLINE# def test_node_states( self ) : #NEWLINE# #INDENT# states = self . mgr . states ( NODE1 [ 'uuid' ] ) #NEWLINE# expect = [ ( 'GET' , ( '/v1/nodes/%s/states' % NODE1 [ 'uuid' ] ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , None ) ] #NEWLINE# self . assertEqual ( expect , expect . api . calls ) #NEWLINE# expected_fields = [ 'last_error' , 'power_state' , 'provision_state' , 'target_power_state' , 'target_provision_state' ] #NEWLINE# self . assertEqual ( sorted ( expected_fields ) , sorted ( states . to_dict ( ) . keys ( ) ) )