def test_make_json_error_response(self):

        response = self.provider._make_json_error_response('some_error')
        self.assertEquals(400, response.status_code)
        try:
            response_json = response.json()
        except __HOLE__:
            response_json = response.json
        self.assertEquals({'error': 'some_error'}, response_json)
dataset/ETHPy150Open NateFerrero/oauth2lib/oauth2lib/tests/test_provider.py/AuthorizationProviderTest.test_make_json_error_response