#NEWLINE# def test__generate_isolinux_cfg( self ) : #NEWLINE# #INDENT# kernel_params = [ 'key1=value1' , 'key2' ] #NEWLINE# options = { #NEWLINE# #INDENT# 'kernel' : '/vmlinuz' , #NEWLINE# 'ramdisk' : '/initrd' , #NEWLINE# #UNINDENT# } #NEWLINE# expected_cfg = 'default boot\n\nlabel boot\nkernel /vmlinuz\nappend initrd=/initrd text key1=value1 key2 --' #NEWLINE# cfg = images . _generate_cfg ( kernel_params , CONF . isolinux_config_template , options ) #NEWLINE# self . assertEqual ( expected_cfg , cfg )