Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias Assign AttributeStore NameLoad attr NameLoad ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Return Call NameLoad orelse Assign NameStore Call NameLoad keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list
N/A N/A 
Tests for the django_openid_auth Admin login form replacement.
 N/A os N/A unittest django.conf settings django.contrib.auth.models User AnonymousUser N/A N/A settings OPENID_USE_AS_ADMIN_LOGIN True django_openid_auth admin django.test TestCase create_user N/A N/A is_staff authenticated N/A False True N/A N/A 
    Create and return a user, either the AnonymousUser or a normal Django user,
    setting the is_staff attribute if appropriate.
     N/A N/A authenticated N/A N/A N/A AnonymousUser N/A N/A user N/A User username testing email testing@example.com is_staff is_staff N/A N/A N/A user set_password test N/A N/A N/A user save N/A SiteAdminTests N/A TestCase N/A N/A 
    TestCase for accessing /admin/ when the django_openid_auth form replacement
    is in use.
     test_admin_site_with_openid_login_authenticated_non_staff N/A N/A self N/A N/A N/A 
        If the request has an authenticated user, who is not flagged as a
        staff member, then they get a failure response.
         N/A N/A create_user N/A N/A N/A N/A self client login username testing password test N/A response N/A N/A N/A self client get /admin/ N/A N/A N/A self assertTrue N/A User testing does not have admin access. N/A response content Missing error message in response N/A test_admin_site_with_openid_login_non_authenticated_user N/A N/A self N/A N/A N/A 
        Unauthenticated users accessing the admin page should be directed to
        the OpenID login url.
         N/A response N/A N/A N/A self client get /admin/ N/A N/A N/A self assertEqual 302 N/A response status_code N/A N/A N/A self assertEqual http://testserver/openid/login/?next=/admin/ N/A response N/A Location N/A N/A suite N/A N/A N/A N/A N/A N/A N/A N/A N/A unittest TestLoader loadTestsFromName __name__ N/A