If it is clear the source directory is the root directory of the image the variable should be named root_dir not source_dir
21 lines
430 B
Python
21 lines
430 B
Python
from nose.tools import *
|
|
from mock import patch
|
|
|
|
import mock
|
|
|
|
import nose_helper
|
|
|
|
from kiwi.exceptions import *
|
|
from kiwi.bootloader_install_base import BootLoaderInstallBase
|
|
|
|
|
|
class TestBootLoaderInstallBase(object):
|
|
def setup(self):
|
|
self.bootloader = BootLoaderInstallBase(
|
|
'root_dir', mock.Mock()
|
|
)
|
|
|
|
@raises(NotImplementedError)
|
|
def test_install(self):
|
|
self.bootloader.install()
|