def test_quota_exceeded(self):

        def mock_call_geocoder(*args, **kwargs):
            """
            Mock API call to return bad response.
            """
            return {
                "geocoding_results": {
                    "STATUS": {
                        "access": "OVER_QUERY_LIMIT",
                        "status": "FAILED, ACCESS_DENIED"
                    }
                }
            }
        self.geocoder._call_geocoder = types.MethodType(
            mock_call_geocoder,
            self.geocoder
        )

        with self.assertRaises(exc.GeocoderQuotaExceeded):
            self.geocoder.geocode('435 north michigan ave, chicago il 60611')
Returns a generator with all environmental vars with prefix PIP_
dataset/ETHPy150Open geopy/geopy/test/geocoders/geocodefarm.py/GeocodeFarmTestCase.test_quota_exceeded--crossover with--dataset/ETHPy150Open balanced/status.balancedpayments.com/venv/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg/pip/baseparser.py/ConfigOptionParser.get_environ_vars