#NEWLINE# @ requests_mock . Mocker ( ) #NEWLINE# def test_insert( self , mock ) : #NEWLINE# #INDENT# path = os . path . join ( helpers . TEST_ROOT , 'fixtures' , 'dresden.html' ) #NEWLINE# cities = env . supported_cities ( ) #NEWLINE# module = cities [ 'Dresden' ] #NEWLINE# with open ( self ) as f : #NEWLINE# #INDENT# src = module . geodata . city . source #NEWLINE# mock . get ( src , text = f . read ( ) ) #NEWLINE# #UNINDENT# scraper . scrape_city ( module )