#NEWLINE# def _test_set_vm_state( self , state ) : #NEWLINE# #INDENT# mock_instance = fake_instance . fake_instance_obj ( self . context ) #NEWLINE# self . _vmops . _set_vm_state ( mock_instance , self ) #NEWLINE# self . _vmops . _vmutils . set_vm_state . assert_called_once_with ( mock_instance . name , state )