예제 #1
0
 def test_execute_generates_id(self):
     action = Action(app_name='HelloWorld',
                     action_name='helloWorld',
                     name='helloWorld')
     original_execution_id = action.get_execution_id()
     instance = TestAction._make_app_instance()
     action.execute(LocalActionExecutionStrategy(), {}, instance.instance)
     self.assertNotEqual(action.get_execution_id(), original_execution_id)
예제 #2
0
 def test_execute_generates_id(self):
     action = Action(app_name='HelloWorld',
                     action_name='helloWorld',
                     name='helloWorld')
     original_execution_id = action.get_execution_id()
     instance = AppInstance.create(app_name='HelloWorld',
                                   device_name='device1')
     action.execute(instance.instance, {})
     self.assertNotEqual(action.get_execution_id(), original_execution_id)
예제 #3
0
 def test_get_execution_id(self):
     action = Action('HelloWorld', 'helloWorld', 'helloWorld')
     self.assertEqual(action.get_execution_id(), action._execution_id)
예제 #4
0
 def test_get_execution_id(self):
     action = Action('HelloWorld', 'helloWorld', 'helloWorld')
     self.assertEqual(action.get_execution_id(), action._execution_id)
예제 #5
0
 def test_execute_generates_id(self):
     action = Action(app_name='HelloWorld', action_name='helloWorld', name='helloWorld')
     original_execution_id = action.get_execution_id()
     instance = TestAction._make_app_instance()
     action.execute(LocalActionExecutionStrategy(), {}, instance.instance)
     self.assertNotEqual(action.get_execution_id(), original_execution_id)