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

# 
# Path: cli_bdd/core/steps/file.py
# class CopyFileOrDirectory(StepBase):
# class MoveFileOrDirectory(StepBase):
# class CreateDirectory(StepBase):
# class ChangeDirectory(StepBase):
# class CreateFileWithContent(StepBase):
# class CreateFileWithMultilineContent(StepBase):
# class CheckFileOrDirectoryExist(StepBase):
#     def step(self, file_or_directory, source, destination):
#     def step(self, file_or_directory, source, destination):
#     def step(self, dir_path):
#     def step(self, dir_path):
#     def step(self, file_path, file_content):
#     def step(self, file_path):
#     def step(self, file_or_directory, path, should_not=None):
# 
# Path: cli_bdd/lettuce/steps/file.py



import os
import shutil
import tempfile
from hamcrest import assert_that, calling, equal_to, is_not, raises
from cli_bdd.behave.steps import file as behave_file
from cli_bdd.core.steps.file import base_steps
from cli_bdd.lettuce.steps import file as lettuce_file
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)
        try:
            shutil.rmtree(new_dir_path)
        except OSError:
            pass

        self.execute_module_step(
            'move_file_or_directory',
            kwargs={
                'file_or_directory': 'directory',
                'source': original_dir_path,
                'destination': new_dir_path
            }
        )
        assert_that(os.path.exists(original_dir_path), equal_to(False))
        assert_that(os.path.exists(original_subdir_path_file), equal_to(False))
        assert_that(
            open(new_subdir_path_file).read(),
            equal_to(original_subdir_path_file_content)
        )

    def test_create_directory(self):
        dir_path = os.path.join(tempfile.gettempdir(), 'some_dir/')

        try:
            shutil.rmtree(dir_path)
        except OSError:
            pass

        self.execute_module_step(
            'create_directory',

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

# 
# Path: cli_bdd/core/steps/file.py
# class CopyFileOrDirectory(StepBase):
# class MoveFileOrDirectory(StepBase):
# class CreateDirectory(StepBase):
# class ChangeDirectory(StepBase):
# class CreateFileWithContent(StepBase):
# class CreateFileWithMultilineContent(StepBase):
# class CheckFileOrDirectoryExist(StepBase):
#     def step(self, file_or_directory, source, destination):
#     def step(self, file_or_directory, source, destination):
#     def step(self, dir_path):
#     def step(self, dir_path):
#     def step(self, file_path, file_content):
#     def step(self, file_path):
#     def step(self, file_or_directory, path, should_not=None):
# 
# Path: cli_bdd/lettuce/steps/file.py



# Path: tests/unit/steps/file/tests.py
import os
import shutil
import tempfile
from hamcrest import assert_that, calling, equal_to, is_not, raises
from cli_bdd.behave.steps import file as behave_file
from cli_bdd.core.steps.file import base_steps
from cli_bdd.lettuce.steps import file as lettuce_file
from testutils import (
    BehaveStepsTestMixin,
    LettuceStepsTestMixin,
    StepsSentenceRegexTestMixin,
    TestCase
)

        try:
            shutil.rmtree(new_dir_path)
        except OSError:
            pass

        self.execute_module_step(
            'move_file_or_directory',
            kwargs={
                'file_or_directory': 'directory',
                'source': original_dir_path,
                'destination': new_dir_path
            }
        )
        assert_that(os.path.exists(original_dir_path), equal_to(False))
        assert_that(os.path.exists(original_subdir_path_file), equal_to(False))
        assert_that(
            open(new_subdir_path_file).read(),
            equal_to(original_subdir_path_file_content)
        )

    def test_create_directory(self):
        dir_path = os.path.join(tempfile.gettempdir(), 'some_dir/')

        try:
            shutil.rmtree(dir_path)
        except OSError:
            pass

        self.execute_module_step(
            'create_directory',

            kwargs={