kiwi-el8/test/unit/container_setup_test.py
Marcus Schäfer e6cc5bfa09 Move from nose to pytest
nose is no longer maintained, thus we have to move to another
testing system. This commit updates the tox setup and all tests
to use pytest instead of nose.
2016-03-14 12:23:14 +01:00

21 lines
519 B
Python

from mock import patch
import mock
from .test_helper import *
from kiwi.exceptions import *
from kiwi.container.setup import ContainerSetup
class TestContainerSetup(object):
@raises(KiwiContainerSetupError)
def test_container_not_implemented(self):
ContainerSetup('foo', 'root_dir')
@patch('kiwi.container.setup.ContainerSetupDocker')
def test_container_docker(self, mock_docker):
ContainerSetup('docker', 'root_dir')
mock_docker.assert_called_once_with('root_dir', None)