kiwi-el8/test/unit/bootloader_template_zipl_test.py
Thomas Schraitle 45bc5a03a7 Refactor into subpackage to fix #23
Codecoverage are 100% and tests are green

Changes:
* Refactor archive_*.py -> archive subpackage
* Refactor partitioner_*.py -> partitioner subpackage
* Refactor package_manager_*.py -> package_manager/ subpackage
* Refactor bootloader_config*.py -> bootloader/config/ subpackage
* Refactor bootloader_template*.py -> bootloader/template/ subpackage
* Refactor bootloader_install*.py -> bootloader/install/ subpackage
* Refactor repository*.py -> repository/ subpackage
* Refactor filesystem*.py -> filesystem/ subpackage
* Refactor dist_*.py -> dist/dformat subpackage
  The name `dformat` as package name is needed to avoid any name
  conflicts with the built-in function `format`.
* Refactor volume_manager*.py -> volume_manager/ subpackage
* Refactor boot_image*.py -> boot/image/ subpackage
2016-02-27 10:31:31 +01:00

31 lines
875 B
Python

from nose.tools import *
from mock import patch
import mock
from . import nose_helper
from kiwi.bootloader.template.zipl import BootLoaderTemplateZipl
class TestBootLoaderTemplateZipl(object):
def setup(self):
self.zipl = BootLoaderTemplateZipl()
def test_get_template(self):
assert self.zipl.get_template().substitute(
device='/dev/loop0',
target_type='CDL',
blocksize='4096',
offset=24,
geometry='2912,15,12',
default_boot='1',
bootpath='boot/zipl',
boot_timeout='200',
title='LimeJeOS-DASD-ECKD-SLE12_(_VMX_)',
kernel_file='linux.vmx',
initrd_file='initrd.vmx',
boot_options='cio_ignore=all,!ipldev,!condev',
failsafe_boot_options='x11failsafe cio_ignore=all,!ipldev,!condev'
)