Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias Assign NameStore CompareGtE Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Str If NameLoad body ImportFrom alias Assign NameStore Call NameLoad orelse ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad Str attr NameLoad ClassDef bases body Assign NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword Str keyword Str body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str With Call AttributeLoad NameLoad attr NameLoad keyword Str body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If UnaryOpNot NameLoad body With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr CompareIn Str Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr orelse Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Num keyword Dict Str Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A factory N/A django N/A unittest N/A warnings distutils.version LooseVersion test_plus.test CBVTestCase NoPreviousResponse TestCase views CBView CBTemplateView N/A DJANGO_16 N/A N/A LooseVersion N/A N/A django get_version N/A LooseVersion 1.6 N/A DJANGO_16 N/A django.contrib.auth get_user_model N/A User N/A get_user_model N/A django.contrib.auth.models User UserFactory N/A N/A factory DjangoModelFactory N/A N/A username N/A N/A factory Sequence N/A N/A N/A n N/A N/A N/A user{} format n N/A email N/A N/A factory Sequence N/A N/A N/A n N/A N/A N/A user{}@example.com format n Meta N/A N/A N/A model User N/A N/A TestPlusUserFactoryOption N/A TestCase N/A N/A user_factory UserFactory test_make_user_factory N/A N/A self N/A N/A N/A u1 N/A N/A self make_user factory N/A N/A N/A self assertEqual N/A u1 username factory N/A N/A TestPlusViewTests N/A TestCase N/A test_get N/A N/A self N/A N/A N/A res N/A N/A self get view-200 N/A N/A N/A self assertEqual N/A res status_code 200 N/A url N/A N/A self reverse view-200 N/A res N/A N/A self get url N/A N/A N/A self assertEqual N/A res status_code 200 N/A test_get_follow N/A N/A self N/A N/A N/A res N/A N/A self get view-redirect N/A N/A N/A self assertEqual N/A res status_code 302 N/A url N/A N/A self reverse view-redirect N/A res N/A N/A self get url follow True N/A N/A N/A self assertEqual N/A res status_code 200 N/A test_get_query N/A N/A self N/A N/A N/A res N/A N/A self get view-200 data N/A query foo N/A N/A N/A self assertEqual N/A res status_code 200 N/A N/A N/A self assertEqual N/A N/A res request N/A QUERY_STRING query=foo N/A test_post N/A N/A self N/A N/A N/A url N/A N/A self reverse view-200 N/A data N/A testing True N/A res N/A N/A self post url data data N/A N/A N/A self assertTrue N/A res status_code 200 N/A test_post_follow N/A N/A self N/A N/A N/A url N/A N/A self reverse view-redirect N/A data N/A testing True N/A res N/A N/A self post url data data N/A N/A N/A self assertTrue N/A res status_code 302 N/A res N/A N/A self post url data data follow True N/A N/A N/A self assertTrue N/A res status_code 200 N/A test_get_check_200 N/A N/A self N/A N/A N/A res N/A N/A self get_check_200 view-200 N/A N/A N/A self assertTrue N/A res status_code 200 N/A test_response_200 N/A N/A self N/A N/A N/A res N/A N/A self get view-200 N/A N/A N/A self response_200 res N/A N/A N/A self response_200 N/A test_response_201 N/A N/A self N/A N/A N/A res N/A N/A self get view-201 N/A N/A N/A self response_201 res N/A N/A N/A self response_201 N/A test_response_302 N/A N/A self N/A N/A N/A res N/A N/A self get view-302 N/A N/A N/A self response_302 res N/A N/A N/A self response_302 N/A test_response_403 N/A N/A self N/A N/A N/A res N/A N/A self get view-403 N/A N/A N/A self response_403 res N/A N/A N/A self response_403 N/A test_response_404 N/A N/A self N/A N/A N/A res N/A N/A self get view-404 N/A N/A N/A self response_404 res N/A N/A N/A self response_404 N/A test_response_405 N/A N/A self N/A N/A N/A res N/A N/A self get view-405 N/A N/A N/A self response_405 res N/A N/A N/A self response_405 N/A test_response_410 N/A N/A self N/A N/A N/A res N/A N/A self get view-410 N/A N/A N/A self response_410 res N/A N/A N/A self response_410 N/A test_make_user N/A N/A self N/A N/A N/A  Test make_user using django.contrib.auth defaults  N/A u1 N/A N/A self make_user u1 N/A N/A N/A self assertEqual N/A u1 username u1 N/A test_make_user_with_perms N/A N/A self N/A N/A N/A u1 N/A N/A self make_user u1 perms N/A auth.* N/A expected_perms N/A add_group change_group delete_group add_permission change_permission delete_permission add_user change_user delete_user N/A N/A N/A self assertEqual N/A list N/A N/A N/A u1 user_permissions values_list codename flat True expected_perms N/A u2 N/A N/A self make_user u2 perms N/A auth.add_group N/A N/A N/A self assertEqual N/A list N/A N/A N/A u2 user_permissions values_list codename flat True N/A add_group N/A test_login_required N/A N/A self N/A N/A N/A N/A N/A self assertLoginRequired view-needs-login N/A N/A N/A self make_user test N/A N/A N/A self login username test password password N/A N/A N/A N/A self get_check_200 view-needs-login N/A test_login_other_password N/A N/A self N/A N/A N/A user N/A N/A self make_user test password revsys N/A N/A N/A self login user password revsys N/A N/A N/A N/A self get_check_200 view-needs-login N/A test_login_no_password N/A N/A self N/A N/A N/A user N/A N/A self make_user test N/A N/A N/A self login username N/A user username N/A N/A N/A N/A self get_check_200 view-needs-login N/A test_login_user_object N/A N/A self N/A N/A N/A user N/A N/A self make_user test N/A N/A N/A self login user N/A N/A N/A N/A self get_check_200 view-needs-login N/A test_reverse N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self reverse view-200 /view/200/ N/A test_assertgoodview N/A N/A self N/A N/A N/A N/A N/A self assertGoodView view-200 N/A test_assertnumqueries N/A N/A self N/A N/A N/A N/A N/A self assertNumQueriesLessThan 1 N/A N/A N/A N/A self get view-needs-login N/A test_assertnumqueries_data_1 N/A N/A self N/A N/A N/A N/A N/A self assertNumQueriesLessThan 2 N/A N/A N/A N/A self get view-data-1 N/A test_assertnumqueries_data_5 N/A N/A self N/A N/A N/A N/A N/A self assertNumQueriesLessThan 6 N/A N/A N/A N/A self get view-data-5 N/A test_assertnumqueries_failure N/A N/A self N/A N/A N/A N/A DJANGO_16 N/A N/A N/A N/A unittest skip Does not work before Django 1.6 N/A N/A N/A self assertNumQueriesLessThan 1 N/A N/A N/A N/A self get view-data-5 N/A N/A unittest expectedFailure test_assertnumqueries_warning N/A N/A self N/A N/A N/A N/A DJANGO_16 N/A N/A N/A N/A warnings catch_warnings record True w N/A N/A N/A N/A warnings simplefilter always N/A N/A N/A self assertNumQueriesLessThan 1 N/A N/A N/A N/A self get view-data-1 N/A N/A N/A self assertEqual N/A len w 1 N/A N/A N/A self assertTrue N/A skipped N/A str N/A N/A w N/A -1 message N/A N/A N/A N/A unittest skip Only useful for Django 1.6 and before N/A test_assertincontext N/A N/A self N/A N/A N/A response N/A N/A self get view-context-with N/A N/A N/A self assertTrue N/A testvalue N/A response context N/A N/A N/A self assertInContext testvalue N/A N/A N/A self assertTrue N/A N/A self context N/A testvalue N/A N/A response context N/A testvalue N/A test_get_context N/A N/A self N/A N/A N/A response N/A N/A self get view-context-with N/A N/A N/A self assertTrue N/A testvalue N/A response context N/A value N/A N/A self get_context testvalue N/A N/A N/A self assertEqual value True N/A test_assert_context N/A N/A self N/A N/A N/A response N/A N/A self get view-context-with N/A N/A N/A self assertTrue N/A testvalue N/A response context N/A N/A N/A self assertContext testvalue True N/A test_assertnotincontext N/A N/A self N/A N/A N/A N/A N/A self get view-context-without N/A N/A N/A self assertInContext testvalue N/A N/A unittest expectedFailure test_no_response N/A N/A self N/A N/A N/A N/A N/A self assertRaises NoPreviousResponse N/A N/A N/A N/A self assertInContext testvalue N/A test_get_is_ajax N/A N/A self N/A N/A N/A response N/A N/A self get view-is-ajax extra N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A N/A N/A self response_200 response N/A test_post_is_ajax N/A N/A self N/A N/A N/A response N/A N/A self post view-is-ajax data N/A item 1 extra N/A HTTP_X_REQUESTED_WITH XMLHttpRequest N/A N/A N/A self response_200 response N/A N/A TestPlusCBViewTests N/A CBVTestCase N/A test_get N/A N/A self N/A N/A N/A response N/A N/A self get CBView N/A N/A N/A self assertEqual N/A response status_code 200 N/A test_post N/A N/A self N/A N/A N/A data N/A testing True N/A response N/A N/A self post CBView data data N/A N/A N/A self assertEqual N/A response status_code 200 N/A test_get_check_200 N/A N/A self N/A N/A N/A N/A N/A self get_check_200 CBView N/A test_assert_good_view N/A N/A self N/A N/A N/A N/A N/A self assertGoodView CBView N/A N/A TestPlusCBTemplateViewTests N/A CBVTestCase N/A test_get N/A N/A self N/A N/A N/A response N/A N/A self get CBTemplateView N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertInContext revsys N/A N/A N/A self assertContext revsys 42 N/A N/A N/A self assertTemplateUsed response template_name test.html N/A test_get_new_template N/A N/A self N/A N/A N/A template_name other.html N/A response N/A N/A self get CBTemplateView initkwargs N/A template_name template_name N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertTemplateUsed response template_name template_name N/A N/A TestPlusCBCustomMethodTests N/A CBVTestCase N/A test_custom_method_with_value N/A N/A self N/A N/A N/A special_value 42 N/A instance N/A N/A self get_instance CBView initkwargs N/A special_value special_value N/A N/A N/A self assertEqual N/A N/A instance special special_value N/A test_custom_method_no_value N/A N/A self N/A N/A N/A instance N/A N/A self get_instance CBView N/A N/A N/A self assertFalse N/A N/A instance special N/A N/A