Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num decorator_list decorator_list
N/A django db django.conf settings django.contrib.contenttypes.models ContentType django.contrib.sites.models Site django.contrib.contenttypes.views shortcut django.core.exceptions ObjectDoesNotExist django.http HttpRequest django.test TestCase ContentTypesTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self old_DEBUG N/A settings DEBUG N/A N/A self old_Site_meta_installed N/A N/A Site _meta installed N/A N/A settings DEBUG True N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A db reset_queries N/A tearDown N/A N/A self N/A N/A N/A N/A settings DEBUG N/A self old_DEBUG N/A N/A N/A Site _meta installed N/A self old_Site_meta_installed N/A N/A N/A N/A ContentType objects clear_cache N/A test_lookup_cache N/A N/A self N/A N/A N/A 
        Make sure that the content type cache (see ContentTypeManager)
        works correctly. Lookups for a particular content type -- by model or
        by ID -- should hit the database only on the first lookup.
         N/A N/A N/A N/A ContentType objects get_for_model ContentType N/A N/A N/A self assertEqual 1 N/A len N/A N/A db connection queries N/A ct N/A N/A N/A ContentType objects get_for_model ContentType N/A N/A N/A self assertEqual 1 N/A len N/A N/A db connection queries N/A N/A N/A N/A ContentType objects get_for_id N/A ct id N/A N/A N/A self assertEqual 1 N/A len N/A N/A db connection queries N/A N/A N/A N/A ContentType objects clear_cache N/A N/A N/A N/A ContentType objects get_for_model ContentType N/A N/A len N/A N/A db connection queries N/A N/A N/A self assertEqual 2 N/A len N/A N/A db connection queries N/A test_shortcut_view N/A N/A self N/A N/A N/A 
        Check that the shortcut view (used for the admin "view on site"
        functionality) returns a complete URL regardless of whether the sites
        framework is installed
         N/A request N/A HttpRequest N/A N/A request META N/A SERVER_NAME SERVER_PORT Example.com 80 django.contrib.auth.models User N/A user_ct N/A N/A N/A ContentType objects get_for_model User N/A obj N/A N/A N/A User objects create username john N/A N/A N/A Site _meta installed N/A N/A current_site N/A N/A N/A Site objects get_current N/A response N/A shortcut request N/A user_ct id N/A obj id N/A N/A N/A self assertEqual N/A http://%s/users/john/ N/A current_site domain N/A N/A N/A N/A response _headers get location N/A 1 N/A N/A N/A Site _meta installed False N/A response N/A shortcut request N/A user_ct id N/A obj id N/A N/A N/A self assertEqual http://Example.com/users/john/ N/A N/A N/A N/A response _headers get location N/A 1 N/A N/A