Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Lambda arguments args defaults AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list Call NameLoad keyword Str keyword Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A django.contrib.sites.models Site django.test RequestFactory django.test.utils override_settings django.utils.functional empty django_hosts.middleware HostsRequestMiddleware base HostsTestCase models Author BlogPost WikiPage SitesTests N/A HostsTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super SitesTests self setUp N/A N/A self site1 N/A N/A N/A Site objects create domain wiki.site1 name site1 N/A N/A self site2 N/A N/A N/A Site objects create domain wiki.site2 name site2 N/A N/A self site3 N/A N/A N/A Site objects create domain wiki.site3 name site3 N/A N/A self site4 N/A N/A N/A Site objects create domain admin.site4 name site4 N/A N/A self page1 N/A N/A N/A WikiPage objects create content page1 site N/A self site1 N/A N/A self page2 N/A N/A N/A WikiPage objects create content page2 site N/A self site1 N/A N/A self page3 N/A N/A N/A WikiPage objects create content page3 site N/A self site2 N/A N/A self page4 N/A N/A N/A WikiPage objects create content page4 site N/A self site3 N/A N/A self author1 N/A N/A N/A Author objects create name john site N/A self site1 N/A N/A self author2 N/A N/A N/A Author objects create name terry site N/A self site2 N/A N/A self post1 N/A N/A N/A BlogPost objects create content post1 author N/A self author1 N/A N/A self post2 N/A N/A N/A BlogPost objects create content post2 author N/A self author2 N/A tearDown N/A N/A self N/A N/A N/A model N/A WikiPage BlogPost Author Site N/A N/A N/A N/A N/A N/A N/A model objects all delete N/A test_sites_callback N/A N/A self N/A N/A N/A rf N/A RequestFactory HTTP_HOST wiki.site1 N/A request N/A N/A rf get /simple/ N/A middleware N/A HostsRequestMiddleware N/A N/A N/A middleware process_request request N/A N/A N/A self assertEqual N/A request urlconf tests.urls.simple N/A N/A N/A self assertEqual N/A N/A request site pk N/A N/A self site1 pk N/A N/A override_settings ROOT_HOSTCONF tests.hosts.simple DEFAULT_HOST www test_sites_cached_callback N/A N/A self N/A N/A N/A rf N/A RequestFactory HTTP_HOST admin.site4 N/A request N/A N/A rf get /simple/ N/A middleware N/A HostsRequestMiddleware N/A N/A N/A middleware process_request request N/A get_site N/A N/A N/A N/A N/A N/A request site domain N/A N/A N/A self assertEqual N/A N/A request site _wrapped empty N/A N/A N/A self assertNumQueries 1 get_site N/A N/A N/A self assertEqual N/A N/A request site _wrapped N/A self site4 N/A N/A N/A request site _wrapped empty N/A N/A N/A self assertNumQueries 0 get_site N/A N/A N/A self assertEqual N/A N/A request site pk N/A N/A self site4 pk N/A N/A override_settings ROOT_HOSTCONF tests.hosts.simple DEFAULT_HOST www test_sites_callback_with_parent_host N/A N/A self N/A N/A N/A rf N/A RequestFactory HTTP_HOST wiki.site2 N/A request N/A N/A rf get /simple/ N/A middleware N/A HostsRequestMiddleware N/A N/A N/A middleware process_request request N/A N/A N/A self assertEqual N/A request urlconf tests.urls.simple N/A N/A N/A self assertEqual N/A N/A request site pk N/A N/A self site2 pk N/A N/A override_settings ROOT_HOSTCONF tests.hosts.simple DEFAULT_HOST www test_manager_simple N/A N/A self N/A N/A N/A rf N/A RequestFactory HTTP_HOST wiki.site2 N/A request N/A N/A rf get /simple/ N/A middleware N/A HostsRequestMiddleware N/A N/A N/A middleware process_request request N/A N/A N/A self assertEqual N/A request urlconf tests.urls.simple N/A N/A N/A self assertEqual N/A N/A request site pk N/A N/A self site2 pk N/A N/A N/A self assertEqual N/A list N/A N/A N/A WikiPage on_site by_request request N/A N/A self page3 N/A N/A override_settings ROOT_HOSTCONF tests.hosts.simple DEFAULT_HOST www test_manager_missing_site N/A N/A self N/A N/A N/A rf N/A RequestFactory HTTP_HOST static N/A request N/A N/A rf get /simple/ N/A middleware N/A HostsRequestMiddleware N/A N/A N/A middleware process_request request N/A N/A N/A self assertEqual N/A request urlconf tests.urls.simple N/A N/A N/A self assertRaises AttributeError N/A N/A N/A N/A N/A request site N/A N/A N/A self assertEqual N/A list N/A N/A N/A WikiPage on_site by_request request N/A N/A N/A override_settings ROOT_HOSTCONF tests.hosts.simple DEFAULT_HOST www test_manager_default_site N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertEqual N/A list N/A N/A N/A WikiPage on_site all N/A N/A self page1 N/A self page2 N/A test_manager_related_site N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertEqual N/A list N/A N/A N/A BlogPost on_site all N/A N/A self post1 N/A N/A N/A self settings SITE_ID N/A N/A self site2 id N/A N/A N/A N/A self assertEqual N/A list N/A N/A N/A BlogPost on_site all N/A N/A self post2 N/A test_no_select_related N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertEqual N/A list N/A N/A N/A BlogPost no_select_related all N/A N/A self post1 N/A test_non_existing_field N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertRaises ValueError N/A N/A BlogPost non_existing all N/A test_dead_end_field N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertRaises ValueError N/A N/A BlogPost dead_end all N/A test_non_rel_field N/A N/A self N/A N/A N/A N/A N/A self settings SITE_ID N/A N/A self site1 id N/A N/A N/A N/A self assertRaises TypeError N/A N/A BlogPost non_rel all N/A N/A