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

# 
# Path: cli_bdd/core/steps/environment.py
# def _append_to_the_environment_variable(variable, value):
# def _prepend_to_the_environment_variable(variable, value):
#     def step(self, variable, value):
#     def step(self, value, variable):
#     def step(self, value, variable):
#     def step(self):
#     def step(self):
#     def step(self):
# class SetTheEnvironmentVariableBase(StepBase):
# class AppendToTheEnvironmentVariable(StepBase):
# class PrependToTheEnvironmentVariable(StepBase):
# class SetTheEnvironmentVariables(StepBase):
# class AppendTheValuesToTheEnvironmentVariables(StepBase):
# class PrependTheValuesToTheEnvironmentVariables(StepBase):
# 
# Path: cli_bdd/lettuce/steps/environment.py



import os
from copy import deepcopy
from hamcrest import assert_that, equal_to, has_entries
from cli_bdd.behave.steps import environment as behave_environment
from cli_bdd.core.steps.environment import base_steps
from cli_bdd.lettuce.steps import environment as lettuce_environment
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)

        # with env variable
        self.execute_module_step(
            'append_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'amigo'
            }
        )
        assert_that(os.environ.get('hello'), equal_to('worldamigo'))

    def test_prepend_to_the_environment_variable(self):
        assert_that('hello' in os.environ, equal_to(False))

        # no env variable
        self.execute_module_step(
            'prepend_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'world'
            }
        )
        assert_that(os.environ.get('hello'), equal_to('world'))

        # with env variable
        self.execute_module_step(
            'prepend_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'amigo'

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

# 
# Path: cli_bdd/core/steps/environment.py
# def _append_to_the_environment_variable(variable, value):
# def _prepend_to_the_environment_variable(variable, value):
#     def step(self, variable, value):
#     def step(self, value, variable):
#     def step(self, value, variable):
#     def step(self):
#     def step(self):
#     def step(self):
# class SetTheEnvironmentVariableBase(StepBase):
# class AppendToTheEnvironmentVariable(StepBase):
# class PrependToTheEnvironmentVariable(StepBase):
# class SetTheEnvironmentVariables(StepBase):
# class AppendTheValuesToTheEnvironmentVariables(StepBase):
# class PrependTheValuesToTheEnvironmentVariables(StepBase):
# 
# Path: cli_bdd/lettuce/steps/environment.py



# Path: tests/unit/steps/environment/tests.py
import os
from copy import deepcopy
from hamcrest import assert_that, equal_to, has_entries
from cli_bdd.behave.steps import environment as behave_environment
from cli_bdd.core.steps.environment import base_steps
from cli_bdd.lettuce.steps import environment as lettuce_environment
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)


        # with env variable
        self.execute_module_step(
            'append_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'amigo'
            }
        )
        assert_that(os.environ.get('hello'), equal_to('worldamigo'))

    def test_prepend_to_the_environment_variable(self):
        assert_that('hello' in os.environ, equal_to(False))

        # no env variable
        self.execute_module_step(
            'prepend_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'world'
            }
        )
        assert_that(os.environ.get('hello'), equal_to('world'))

        # with env variable
        self.execute_module_step(
            'prepend_to_the_environment_variable',
            kwargs={
                'variable': 'hello',
                'value': 'amigo'

            }