#NEWLINE# def test_non_oauth_errors( self ) : #NEWLINE# #INDENT# object_open_graph_error = '\n        {"error":\n            {"message": "(#3502) Object at URL http://www.fashiolista.com/my_style/list/441276/?og=active&utm_campaign=facebook_action_comment&utm_medium=facebook&utm_source=facebook has og:type of \'website\'. The property \'list\' requires an object of og:type \'fashiolista:list\'. ",\n            "code": 3502, "type": "OAuthException"\n            }\n        }\n        ' #NEWLINE# response = json . loads ( object_open_graph_error ) #NEWLINE# def test( ) : #NEWLINE# #INDENT# FacebookConnection . raise_error ( response [ 'error' ] [ 'type' ] , response [ 'error' ] [ 'message' ] , response [ 'error' ] . get ( 'code' ) ) #NEWLINE# #UNINDENT# self . assertRaises ( OpenGraphException , test )