#NEWLINE# def test_filter_datastores_missing_props( self ) : #NEWLINE# #INDENT# data = [ [ 'VMFS' , 'os-some-name' , 987654321 , 1234678 ] , [ 'NFS' , 'another-name' , 9876543210 , 123467890 ] ] #NEWLINE# prop_names = [ 'summary.type' , 'summary.name' , 'summary.capacity' , 'summary.freeSpace' ] #NEWLINE# datastores = self . build_result_set ( data , prop_names ) #NEWLINE# best_match = ds_obj . Datastore ( ref = 'fake_ref' , name = 'ds' , capacity = 0 , freespace = 0 ) #NEWLINE# rec = ds_util . _select_datastore ( None , datastores , best_match ) #NEWLINE# self . assertEqual ( best_match , rec , 'no matches were expected' )