The extra isohybrid call is only needed if the mkisofs tool category is used. Thus it should be only visible at the place where the isofs is created and not as an extra step in the builder tasks. Additionally the handling of extra options was mkisofs specific and should be better done as a common meta_data record. The tool specific options should only appear in the tool specific class implementations
36 lines
1014 B
Python
36 lines
1014 B
Python
from mock import patch
|
|
from .test_helper import raises
|
|
|
|
from kiwi.iso_tools.base import IsoToolsBase
|
|
|
|
|
|
class TestIsoToolsBase(object):
|
|
@patch('platform.machine')
|
|
def setup(self, mock_machine):
|
|
mock_machine.return_value = 'x86_64'
|
|
self.iso_tool = IsoToolsBase('source-dir')
|
|
|
|
@raises(NotImplementedError)
|
|
def test_create_iso(self):
|
|
self.iso_tool.create_iso('filename')
|
|
|
|
@raises(NotImplementedError)
|
|
def test_list_iso(self):
|
|
self.iso_tool.list_iso('isofile')
|
|
|
|
@raises(NotImplementedError)
|
|
def test_get_tool_name(self):
|
|
self.iso_tool.get_tool_name()
|
|
|
|
@raises(NotImplementedError)
|
|
def test_init_iso_creation_parameters(self):
|
|
self.iso_tool.init_iso_creation_parameters()
|
|
|
|
@raises(NotImplementedError)
|
|
def test_add_efi_loader_parameters(self):
|
|
self.iso_tool.add_efi_loader_parameters()
|
|
|
|
@raises(NotImplementedError)
|
|
def test_has_iso_hybrid_capability(self):
|
|
self.iso_tool.has_iso_hybrid_capability()
|