#NEWLINE# def test_match_device_id_dont_matches_non_empty_extra( self ) : #NEWLINE# #INDENT# fake_ks_disk = { #NEWLINE# #INDENT# 'extra' : [ 'disk/by-id/fake_scsi_dont_matches' , 'disk/by-id/fake_ata_dont_matches' ] , #NEWLINE# 'id' : 'sdd' , #NEWLINE# #UNINDENT# } #NEWLINE# fake_hu_disk = { #NEWLINE# #INDENT# 'uspec' : { #NEWLINE# #INDENT# 'DEVLINKS' : [ '/dev/disk/by-id/fake_scsi_matches' , '/dev/disk/by-path/fake_path' , '/dev/sdd' ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFalse ( nailgun . match_device ( self , fake_ks_disk ) )