#NEWLINE# def test_properties( self ) : #NEWLINE# #INDENT# root_device0 = '/dev/sda' #NEWLINE# root_device1 = '/dev/sdb' #NEWLINE# mappings = [ { #NEWLINE# #INDENT# 'virtual' : 'root' , #NEWLINE# 'device' : root_device0 , #NEWLINE# #UNINDENT# } ] #NEWLINE# properties0 = { #NEWLINE# #INDENT# 'mappings' : mappings , #NEWLINE# #UNINDENT# } #NEWLINE# properties1 = { #NEWLINE# #INDENT# 'mappings' : mappings , #NEWLINE# 'root_device_name' : properties1 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( block_device . properties_root_device_name ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , None ) #NEWLINE# self . assertEqual ( block_device . properties_root_device_name ( properties0 ) , root_device0 ) #NEWLINE# self . assertEqual ( block_device . properties_root_device_name ( properties1 ) , root_device1 )