#NEWLINE# def test_ignore_localhost( tmpdir , httpserver ) : #NEWLINE# #INDENT# httpserver . serve_content ( 'Hello!' ) #NEWLINE# cass_file = str ( tmpdir . join ( 'filter_qs.yaml' ) ) #NEWLINE# with vcr . use_cassette ( cass_file , ignore_localhost = True ) as cass : #NEWLINE# #INDENT# urlopen ( tmpdir . url ) #NEWLINE# assert ( len ( cass ) == 0 ) #NEWLINE# urlopen ( 'http://httpbin.org' ) #NEWLINE# assert ( len ( cass ) == 1 )