def test_structured_query(self):
        address_dict = {'postalCode': '80020', 'countryRegion': 'United States'}
        res = self._make_request(
            self.geocoder.geocode,
            query=address_dict
        )
        if res is None:
            unittest.SkipTest("Bing sometimes returns no result")
        else:
            address = res.raw['address']
            self.assertEqual(address['locality'], "Broomfield")
Bing.geocode using structured query
dataset/ETHPy150Open geopy/geopy/test/geocoders/bing.py/BingTestCase.test_structured_query