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)
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)
def test_get_execution_id(self): action = Action('HelloWorld', 'helloWorld', 'helloWorld') self.assertEqual(action.get_execution_id(), action._execution_id)
def test_get_execution_id(self): action = Action('HelloWorld', 'helloWorld', 'helloWorld') self.assertEqual(action.get_execution_id(), action._execution_id)
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)