#NEWLINE# def test_structured_query( self ) : #NEWLINE# #INDENT# '\n        Bing.geocode using structured query\n        ' #NEWLINE# address_dict = { #NEWLINE# #INDENT# 'postalCode' : '80020' , #NEWLINE# 'countryRegion' : 'United States' , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . _make_request ( self . geocoder . geocode , query = address_dict ) #NEWLINE# if ( address_dict is None ) : #NEWLINE# #INDENT# unittest . SkipTest ( 'Bing sometimes returns no result' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# address = res . raw [ 'address' ] #NEWLINE# self . assertEqual ( address [ 'locality' ] , 'Broomfield' )