kiwi-el8/test/unit/help_test.py
Marcus Schäfer 09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00

23 lines
478 B
Python

import sys
from nose.tools import *
from mock import patch
import nose_helper
from kiwi.help import Help
from kiwi.exceptions import *
class TestHelp(object):
def setup(self):
self.help = Help()
@raises(KiwiHelpNoCommandGiven)
def test_show(self):
self.help.show(None)
@patch('subprocess.call')
def test_show_command(self, mock_process):
self.help.show('foo')
mock_process.assert_called_once_with('man foo', shell=True)