# Path: cli_bdd/behave/steps/command.py

# 
# Path: cli_bdd/core/steps/command.py
# def run(command, fail_on_error=False, interactively=False, timeout=30):
# def ensure_command_finished(child):
#     def step(self, command, timeout):
#     def step(self, command):
#     def step(self, command):
#     def step(self, input_):
#     def step(self, dialog_matcher, timeout):
#     def step(self, output, should_not=False, exactly=False):
#     def step(self, output, should_not=False, comparison=None, count=None):
#     def step(self, should_not=False, exit_status=None):
# class RunCommand(StepBase):
# class SuccessfullyRunCommand(StepBase):
# class RunCommandInteractively(StepBase):
# class TypeIntoCommand(StepBase):
# class GotInteractiveDialogCommand(StepBase):
# class OutputShouldContainText(StepBase):
# class OutputShouldContainLines(StepBase):
# class ExitStatusShouldBe(StepBase):
# 
# Path: cli_bdd/lettuce/steps/command.py



import os
import tempfile
import pexpect
from hamcrest import assert_that, equal_to
from cli_bdd.behave.steps import command as behave_command
from cli_bdd.core.steps.command import base_steps
from cli_bdd.lettuce.steps import command as lettuce_command
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)
                'value': (
                    'I got "Name .*: " for interactive dialog in 0.05 seconds'
                ),
                'expected': {
                    'kwargs': {
                        'dialog_matcher': 'Name .*: ',
                        'timeout': '0.05'
                    }
                }
            },
            {
                'value': 'I got "Login:" for interactive dialog',
                'expected': {
                    'kwargs': {
                        'dialog_matcher': 'Login:',
                        'timeout': None
                    }
                }
            },
        ],
        'output_should_contain_text': [
            {
                'value': 'the output should contain',
                'expected': {
                    'kwargs': {
                        'output': 'output',
                        'should_not': None,
                        'exactly': None
                    }
                }

# Path: cli_bdd/behave/steps/command.py

# 
# Path: cli_bdd/core/steps/command.py
# def run(command, fail_on_error=False, interactively=False, timeout=30):
# def ensure_command_finished(child):
#     def step(self, command, timeout):
#     def step(self, command):
#     def step(self, command):
#     def step(self, input_):
#     def step(self, dialog_matcher, timeout):
#     def step(self, output, should_not=False, exactly=False):
#     def step(self, output, should_not=False, comparison=None, count=None):
#     def step(self, should_not=False, exit_status=None):
# class RunCommand(StepBase):
# class SuccessfullyRunCommand(StepBase):
# class RunCommandInteractively(StepBase):
# class TypeIntoCommand(StepBase):
# class GotInteractiveDialogCommand(StepBase):
# class OutputShouldContainText(StepBase):
# class OutputShouldContainLines(StepBase):
# class ExitStatusShouldBe(StepBase):
# 
# Path: cli_bdd/lettuce/steps/command.py



# Path: tests/unit/steps/command/tests.py
import os
import tempfile
import pexpect
from hamcrest import assert_that, equal_to
from cli_bdd.behave.steps import command as behave_command
from cli_bdd.core.steps.command import base_steps
from cli_bdd.lettuce.steps import command as lettuce_command
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)

                'value': (
                    'I got "Name .*: " for interactive dialog in 0.05 seconds'
                ),
                'expected': {
                    'kwargs': {
                        'dialog_matcher': 'Name .*: ',
                        'timeout': '0.05'
                    }
                }
            },
            {
                'value': 'I got "Login:" for interactive dialog',
                'expected': {
                    'kwargs': {
                        'dialog_matcher': 'Login:',
                        'timeout': None
                    }
                }
            },
        ],
        'output_should_contain_text': [
            {
                'value': 'the output should contain',
                'expected': {
                    'kwargs': {
                        'output': 'output',
                        'should_not': None,
                        'exactly': None
                    }
                }

            },