#NEWLINE# def test_parse_root_device_hints( self ) : #NEWLINE# #INDENT# self . node . properties [ 'root_device' ] = { #NEWLINE# #INDENT# 'wwn' : 123456 , #NEWLINE# 'model' : 'foo-model' , #NEWLINE# 'size' : 123 , #NEWLINE# 'serial' : 'foo-serial' , #NEWLINE# 'vendor' : 'foo-vendor' , #NEWLINE# 'name' : '/dev/sda' , #NEWLINE# 'wwn_with_extension' : 123456111 , #NEWLINE# 'wwn_vendor_extension' : 111 , #NEWLINE# #UNINDENT# } #NEWLINE# expected = 'model=foo-model,name=/dev/sda,serial=foo-serial,size=123,vendor=foo-vendor,wwn=123456,wwn_vendor_extension=111,wwn_with_extension=123456111' #NEWLINE# result = utils . parse_root_device_hints ( self . node ) #NEWLINE# self . assertEqual ( expected , result )