
from mistral.engine.actions import actions
from mistral.engine.actions import action_types

from mistral.tests import base


class FakeActionTest(base.BaseTest):

    def test_send_email_real(self):
        expected = "my output"

        action = actions.EchoAction(action_types.ECHO, "test", output=expected)

        self.assertEqual(action.run(), expected)


from mistral.engine.actions import actions
from mistral.engine.actions import action_types
from mistral.tests import base


class FakeActionTest(base.BaseTest):
    def test_fake_action(self):
        expected = "my output"
        action = actions.EchoAction(action_types.ECHO, "test", output=expected)

        self.assertEqual(action.run(), expected)

Correct fake action test name
Correct fake action test name

Change-Id: Ibb2322139fd8d7f3365d3522afde622def910fe9

  
  from mistral.engine.actions import actions
  from mistral.engine.actions import action_types
- 
  from mistral.tests import base
  
  
  class FakeActionTest(base.BaseTest):
+     def test_fake_action(self):
- 
-     def test_send_email_real(self):
          expected = "my output"
- 
          action = actions.EchoAction(action_types.ECHO, "test", output=expected)
  
          self.assertEqual(action.run(), expected)
  
Correct fake action test name
## Code Before:

from mistral.engine.actions import actions
from mistral.engine.actions import action_types

from mistral.tests import base


class FakeActionTest(base.BaseTest):

    def test_send_email_real(self):
        expected = "my output"

        action = actions.EchoAction(action_types.ECHO, "test", output=expected)

        self.assertEqual(action.run(), expected)

## Instruction:
Correct fake action test name
## Code After:

from mistral.engine.actions import actions
from mistral.engine.actions import action_types
from mistral.tests import base


class FakeActionTest(base.BaseTest):
    def test_fake_action(self):
        expected = "my output"
        action = actions.EchoAction(action_types.ECHO, "test", output=expected)

        self.assertEqual(action.run(), expected)
