def test_application_error(self):
        graph = self.guy.graph()

        with mock.patch('urllib2.build_opener') as patched:
            opener = mock.MagicMock()
            response = StringIO('''{
              "error": {
                "type": "OAuthException",
                "message": "Error validating access token: USER_ID has not authorized application APP_ID"
              }
            }''')
            opener.open.side_effect = HTTPError(
                'bla', 500, 'bla', 'bla', response)

            patched.return_value = opener

            def make_request():
                graph.get('me')

            self.assertRaises(facebook_exceptions.OAuthException, make_request)
Part of the parent protocol, "children" of the document will not know
dataset/ETHPy150Open tschellenbach/Django-facebook/open_facebook/tests.py/Test500Detection.test_application_error--crossover with--dataset/ETHPy150Open python-openxml/python-docx/docx/opc/part.py/XmlPart.part