#NEWLINE# def test_method_matcher( cassette ) : #NEWLINE# #INDENT# with vcr . use_cassette ( cassette , match_on = [ 'method' ] ) as cass : #NEWLINE# #INDENT# urlopen ( 'https://google.com/get?a=b' ) #NEWLINE# assert ( cass . play_count == 1 ) #NEWLINE# #UNINDENT# with pytest . raises ( vcr . errors . CannotOverwriteExistingCassetteException ) : #NEWLINE# #INDENT# with vcr . use_cassette ( cassette , match_on = [ 'method' ] ) as cass : #NEWLINE# #INDENT# urlopen ( DEFAULT_URI , data = b'' )