kiwi-el8/test/unit/container/setup/docker_test.py
David Cassany 4b3a105026
Re-structure unit tests folders
This commit relocates unit tests to a folder structure that matches
the source code structure.

Fixes #1128
2019-10-21 14:00:05 +02:00

14 lines
398 B
Python

from mock import patch
from kiwi.container.setup.docker import ContainerSetupDocker
class TestContainerSetupDocker:
@patch('os.path.exists')
def test_init(self, mock_exists):
mock_exists.return_value = True
container = ContainerSetupDocker(
'root_dir', {'container_name': 'system'}
)
assert container.custom_args['container_name'] == 'system'