#NEWLINE# def test_execution_creation_manual_action_run( self ) : #NEWLINE# #INDENT# liveaction = self . MODELS [ 'liveactions' ] [ 'liveaction1.yaml' ] #NEWLINE# executions_util . create_execution_object ( liveaction ) #NEWLINE# execution = self . _get_action_execution ( liveaction__id = str ( liveaction . id ) , raise_exception = True ) #NEWLINE# self . assertDictEqual ( action . trigger , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertDictEqual ( execution . trigger_type , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertDictEqual ( execution . trigger_instance , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertDictEqual ( execution . rule , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# action = action_utils . get_action_by_ref ( 'core.local' ) #NEWLINE# self . assertDictEqual ( execution . action , vars ( ActionAPI . from_model ( action ) ) ) #NEWLINE# runner = RunnerType . get_by_name ( action . runner_type [ 'name' ] ) #NEWLINE# self . assertDictEqual ( execution . runner , vars ( RunnerTypeAPI . from_model ( runner ) ) ) #NEWLINE# liveaction = LiveAction . get_by_id ( str ( liveaction . id ) ) #NEWLINE# self . assertEquals ( execution . liveaction [ 'id' ] , str ( liveaction . id ) )