Debian Codegraph @

test/unit/bootloader/install/zipl_test.py

raw
1 from unittest.mock import Mock
2 from pytest import raises
3
4 from kiwi.bootloader.install.zipl import BootLoaderInstallZipl
5
6
7 class TestBootLoaderInstallZipl:
8 def setup(self):
9 self.bootloader = BootLoaderInstallZipl(
10 Mock(), 'root_dir', Mock()
11 )
12
13 def setup_method(self, cls):
14 self.setup()
15
16 def test_install(self):
17 with raises(NotImplementedError):
18 self.bootloader.install()
19
20 def test_install_required(self):
21 assert self.bootloader.install_required() is False
22
23 def test_secure_boot_install(self):
24 # just pass
25 self.bootloader.secure_boot_install()