#NEWLINE# def test_no_match_by_name( self ) : #NEWLINE# #INDENT# the_name = 'Brian' #NEWLINE# match = mock . Mock ( spec = resource2 . Resource ) #NEWLINE# match . name = the_name #NEWLINE# result = resource2 . Resource . _get_one_match ( 'Richard' , [ match ] ) #NEWLINE# self . assertIsNone ( result , match )