#NEWLINE# def test_city_district_with_dict_query( self ) : #NEWLINE# #INDENT# '\n        Nominatim.geocode using `addressdetails`\n        ' #NEWLINE# geocoder = Nominatim ( country_bias = 'DE' ) #NEWLINE# query = { #NEWLINE# #INDENT# 'postalcode' : 10117 , #NEWLINE# #UNINDENT# } #NEWLINE# result = self . _make_request ( geocoder . geocode , geocoder , addressdetails = True ) #NEWLINE# self . assertEqual ( result . raw [ 'address' ] [ 'city_district' ] , 'Mitte' )