#NEWLINE# def test_multiple_matches( self ) : #NEWLINE# #INDENT# pr = ProviderRegistry ( ) #NEWLINE# provider1 = TestProvider ( 'link' ) #NEWLINE# provider2 = TestProvider ( 'link' ) #NEWLINE# pr . register ( '1(\\d+)' , provider1 ) #NEWLINE# pr . register ( '1\\d+' , provider2 ) #NEWLINE# self . assertEqual ( pr . provider_for_url ( '11' ) , provider2 ) #NEWLINE# pr . unregister ( '1\\d+' ) #NEWLINE# self . assertEqual ( pr . provider_for_url ( '11' ) , provider1 )