def test_execute_generates_uid(self): step = Step(app='HelloWorld', action='helloWorld') original_execution_uid = step.get_execution_uid() instance = AppInstance.create(app_name='HelloWorld', device_name='device1') step.execute(instance.instance, {}) self.assertNotEqual(step.get_execution_uid(), original_execution_uid)
def test_get_execution_uid(self): step = Step('HelloWorld', 'helloWorld') self.assertEqual(step.get_execution_uid(), step._execution_uid)