Module ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign SubscriptStore NameLoad Index Str Call NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad body Raise Call NameLoad Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body ImportFrom alias Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body ImportFrom alias Return CompareIn AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body If CompareIn Str NameLoad body Assign NameStore Call NameLoad keyword Str keyword Str keyword Str Assign NameStore Call NameLoad keyword ListLoad NameLoad Return NameLoad If BoolOpOr Str CompareIn Str NameLoad body Assign NameStore Call NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad keyword Str keyword Num keyword Str Assign NameStore ListLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword Str Return NameLoad decorator_list NameLoad decorator_list
N/A django.test.client RequestFactory open_facebook.api OpenFacebook FacebookAuthorization django.core.handlers.base BaseHandler RequestMock N/A RequestFactory N/A N/A 
    Didn't see another solution for this. Decided to read some snippets
    and modded them into the requestfactory class
    http://www.mellowmorning.com/2011/04/18/mock-django-request-for-testing/
     request N/A N/A self N/A request N/A N/A Construct a generic request object. N/A N/A request N/A POST N/A dict N/A N/A request N/A GET N/A dict N/A request N/A N/A RequestFactory request self request N/A handler N/A BaseHandler N/A N/A N/A handler load_middleware N/A middleware_method N/A handler _request_middleware N/A N/A N/A middleware_method request N/A N/A N/A Exception Couldn't create request mock object - request middleware returned a response N/A request N/A N/A MockFacebookAPI N/A OpenFacebook N/A N/A mock True me N/A N/A self N/A N/A django_facebook.test_utils.sample_user_data user_data N/A data N/A user_data N/A N/A self access_token N/A data N/A my_image_url N/A N/A self size N/A None N/A django_facebook.test_utils.sample_user_data user_data N/A data N/A user_data N/A N/A self access_token N/A image_url N/A data N/A image N/A image_url N/A is_authenticated N/A N/A self N/A args kwargs N/A django_facebook.test_utils.sample_user_data user_data N/A N/A N/A self access_token user_data N/A get N/A N/A self path N/A kwargs N/A N/A N/A likes path N/A N/A like N/A dict name Vogue Nederland category Media/news/publishing id 136067283169158 N/A response N/A dict data N/A like N/A response N/A N/A friends N/A friend path N/A N/A friend N/A dict name Aida Tavakkolie id 172001264 N/A response N/A dict data N/A friend N/A response N/A set N/A N/A self path N/A kwargs N/A N/A N/A dict id 123456789 N/A fql N/A N/A self query N/A kwargs N/A N/A Runs the specified query against the Facebook FQL API.
         N/A friend N/A dict name Aida Tavakkolie uid 172001264 gender F N/A response N/A friend N/A response N/A N/A MockFacebookAuthorization N/A FacebookAuthorization N/A extend_access_token N/A N/A cls access_token N/A N/A N/A 
        https://developers.facebook.com/roadmap/offline-access-removal/
        We can extend the token only once per day
        Normal short lived tokens last 1-2 hours
        Long lived tokens (given by extending) last 60 days
         N/A response N/A dict access_token access_token expires 123456789 N/A response N/A classmethod N/A