Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias Assign NameStore TupleLoad TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr TupleLoad Str Str Dict TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr TupleLoad Str Str Dict TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str Str Str Str Call NameLoad Dict Str Str Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str TupleLoad Str Str NameLoad Str AttributeLoad NameLoad attr Call NameLoad Dict Str Str Str Str Assign NameStore TupleLoad TupleLoad Str Str ListLoad Num Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str NameLoad ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Num Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Num TupleLoad Str NameLoad ListLoad Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str NameLoad ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Str Str Str TupleLoad Str NameLoad ListLoad Dict Str Str TupleLoad Str NameLoad ListLoad Dict Str Str TupleLoad Str NameLoad ListLoad Dict Str Str Str Str TupleLoad Str Str ListLoad Str Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str Str Str TupleLoad Str Str ListLoad Call NameLoad keyword Num keyword Num keyword Num TupleLoad Str Str ListLoad Call NameLoad keyword Str keyword Str TupleLoad Str Str ListLoad Str Dict TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Str Dict TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str Str Str TupleLoad Str Str ListLoad Str Str Dict TupleLoad Str NameLoad ListLoad Str Str Dict TupleLoad Str NameLoad ListLoad Str Dict TupleLoad Str NameLoad ListLoad Str Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Str Dict TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict Str Str Str Str TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Str Str Str TupleLoad Str Str ListLoad Dict Str Str TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Num TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Num TupleLoad Str Str ListLoad Dict TupleLoad Str Str ListLoad Dict Str Str Num Num TupleLoad Str Str ListLoad Dict Str Str Num Num TupleLoad Str NameLoad ListLoad Dict Str Str Num Num TupleLoad Str NameLoad ListLoad Dict Str Num ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore NameStore NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad ListLoad Dict Str Str NameLoad Str ListLoad Dict Str Str NameLoad Str ListLoad Dict Str Str NameLoad NameLoad ListLoad Dict Str NameLoad Dict Str Str NameLoad Str ListLoad Dict Str NameLoad Dict Str Str NameLoad Str ListLoad Dict Str NameLoad Dict Str Str NameLoad NameLoad ListLoad Dict Str NameLoad Dict Str NameLoad TryExcept body Expr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Call NameLoad NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str For TupleStore NameStore NameStore Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str BinOpMod Call NameLoad Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num 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 AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword Dict Str Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str keyword Dict Str Str Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Str Num Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num keyword Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword ListLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr TupleLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr TupleLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Str Assign NameStore Str Assign AttributeStore NameLoad attr Call NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore TupleLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore TupleLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list
N/A N/A 
Unit tests for reverse URL lookups.
 __future__ absolute_import unicode_literals django.conf settings django.contrib.auth.models User django.core.exceptions ImproperlyConfigured ViewDoesNotExist django.core.urlresolvers reverse resolve get_callable get_resolver NoReverseMatch Resolver404 ResolverMatch RegexURLResolver RegexURLPattern django.http HttpResponseRedirect HttpResponsePermanentRedirect django.shortcuts redirect django.test TestCase django.utils unittest six N/A urlconf_outer middleware views N/A resolve_test_data N/A N/A /normal/42/37/ normal-view None N/A views empty_view N/A tuple N/A arg1 arg2 42 37 N/A /view_class/42/37/ view-class None N/A views view_class_instance N/A tuple N/A arg1 arg2 42 37 N/A /included/normal/42/37/ inc-normal-view None N/A views empty_view N/A tuple N/A arg1 arg2 42 37 N/A /included/view_class/42/37/ inc-view-class None N/A views view_class_instance N/A tuple N/A arg1 arg2 42 37 N/A /mixed_args/42/37/ mixed-args None N/A views empty_view N/A tuple N/A arg2 37 N/A /included/mixed_args/42/37/ inc-mixed-args None N/A views empty_view N/A tuple N/A arg2 37 N/A /unnamed/normal/42/37/ regressiontests.urlpatterns_reverse.views.empty_view None N/A views empty_view N/A tuple N/A arg1 arg2 42 37 N/A /unnamed/view_class/42/37/ regressiontests.urlpatterns_reverse.views.ViewClass None N/A views view_class_instance N/A tuple N/A arg1 arg2 42 37 N/A /no_kwargs/42/37/ no-kwargs None N/A views empty_view N/A 42 37 N/A N/A /included/no_kwargs/42/37/ inc-no-kwargs None N/A views empty_view N/A 42 37 N/A N/A /test1/inner/42/37/ urlobject-view testapp test-ns1 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /included/test3/inner/42/37/ urlobject-view testapp test-ns3 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /ns-included1/normal/42/37/ inc-normal-view None inc-ns1 N/A views empty_view N/A tuple N/A arg1 arg2 42 37 N/A /included/test3/inner/42/37/ urlobject-view testapp test-ns3 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /default/inner/42/37/ urlobject-view testapp testapp empty_view N/A tuple N/A arg1 arg2 42 37 N/A /other2/inner/42/37/ urlobject-view nodefault other-ns2 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /other1/inner/42/37/ urlobject-view nodefault other-ns1 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /ns-included1/test3/inner/42/37/ urlobject-view testapp inc-ns1:test-ns3 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /ns-included1/ns-included4/ns-included2/test3/inner/42/37/ urlobject-view testapp inc-ns1:inc-ns4:inc-ns2:test-ns3 empty_view N/A tuple N/A arg1 arg2 42 37 N/A /inc70/ inner-nothing None inc-ns5 N/A views empty_view N/A tuple N/A outer 70 N/A /inc78/extra/foobar/ inner-extra None inc-ns5 N/A views empty_view N/A tuple N/A outer extra 78 foobar N/A test_data N/A N/A places /places/3/ N/A 3 N/A N/A places /places/3/ N/A 3 N/A N/A places NoReverseMatch N/A a N/A N/A places NoReverseMatch N/A N/A N/A places? /place/ N/A N/A N/A places+ /places/ N/A N/A N/A places* /place/ N/A N/A N/A places2? / N/A N/A N/A places2+ /places/ N/A N/A N/A places2* / N/A N/A N/A places3 /places/4/ N/A 4 N/A N/A places3 /places/harlem/ N/A harlem N/A N/A places3 NoReverseMatch N/A harlem64 N/A N/A places4 /places/3/ N/A N/A id 3 N/A people NoReverseMatch N/A N/A N/A people /people/adrian/ N/A adrian N/A N/A people /people/adrian/ N/A N/A name adrian N/A people NoReverseMatch N/A name with spaces N/A N/A people NoReverseMatch N/A N/A name name with spaces N/A people2 /people/name/ N/A N/A N/A people2a /people/name/fred/ N/A fred N/A N/A people_backref /people/nate-nate/ N/A nate N/A N/A people_backref /people/nate-nate/ N/A N/A name nate N/A optional /optional/fred/ N/A N/A name fred N/A optional /optional/fred/ N/A fred N/A N/A hardcoded /hardcoded/ N/A N/A N/A hardcoded2 /hardcoded/doc.pdf N/A N/A N/A people3 /people/il/adrian/ N/A N/A state name il adrian N/A people3 NoReverseMatch N/A N/A state il N/A people3 NoReverseMatch N/A N/A name adrian N/A people4 NoReverseMatch N/A N/A state name il adrian N/A people6 /people/il/test/adrian/ N/A il/test adrian N/A N/A people6 /people//adrian/ N/A adrian N/A N/A range /character_set/a/ N/A N/A N/A range2 /character_set/x/ N/A N/A N/A price /price/$10/ N/A 10 N/A N/A price2 /price/$10/ N/A 10 N/A N/A price3 /price/$10/ N/A 10 N/A N/A product /product/chocolate+($2.00)/ N/A N/A price product 2.00 chocolate N/A headlines /headlines/2007.5.21/ N/A N/A dict year 2007 month 5 day 21 N/A windows /windows_path/C:%5CDocuments%20and%20Settings%5Cspam/ N/A N/A dict drive_name C path Documents and Settings\spam N/A special /special_chars/+%5C$*/ N/A +\$* N/A N/A special NoReverseMatch N/A N/A N/A mixed /john/0/ N/A N/A name john N/A repeats /repeats/a/ N/A N/A N/A repeats2 /repeats/aa/ N/A N/A N/A repeats3 /repeats/aa/ N/A N/A N/A insensitive /CaseInsensitive/fred N/A fred N/A N/A test /test/1 N/A N/A N/A test2 /test/2 N/A N/A N/A inner-nothing /outer/42/ N/A N/A outer 42 N/A inner-nothing /outer/42/ N/A 42 N/A N/A inner-nothing NoReverseMatch N/A foo N/A N/A inner-extra /outer/42/extra/inner/ N/A N/A extra outer inner 42 N/A inner-extra /outer/42/extra/inner/ N/A 42 inner N/A N/A inner-extra NoReverseMatch N/A fred inner N/A N/A disjunction NoReverseMatch N/A foo N/A N/A inner-disjunction NoReverseMatch N/A 10 11 N/A N/A extra-places /e-places/10/ N/A 10 N/A N/A extra-people /e-people/fred/ N/A fred N/A N/A extra-people /e-people/fred/ N/A N/A name fred N/A part /part/one/ N/A N/A value one N/A part /prefix/xx/part/one/ N/A N/A value prefix one xx N/A part2 /part2/one/ N/A N/A value one N/A part2 /part2/ N/A N/A N/A part2 /prefix/xx/part2/one/ N/A N/A value prefix one xx N/A part2 /prefix/xx/part2/ N/A N/A prefix xx N/A kwargs_view /arg_view/ N/A N/A N/A kwargs_view /arg_view/10/ N/A N/A arg1 10 N/A regressiontests.urlpatterns_reverse.views.absolute_kwargs_view /absolute_arg_view/ N/A N/A N/A regressiontests.urlpatterns_reverse.views.absolute_kwargs_view /absolute_arg_view/10/ N/A N/A arg1 10 N/A non_path_include /includes/non_path_include/ N/A N/A N/A defaults /defaults_view1/3/ N/A N/A arg1 arg2 3 1 N/A defaults /defaults_view2/3/ N/A N/A arg1 arg2 3 2 N/A defaults NoReverseMatch N/A N/A arg1 arg2 3 3 N/A defaults NoReverseMatch N/A N/A arg2 1 NoURLPatternsTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.no_urls test_no_urls_exception N/A N/A self N/A N/A N/A 
        RegexURLResolver should raise an exception when no urlpatterns exist.
         N/A resolver N/A RegexURLResolver ^$ N/A self urls N/A N/A N/A self assertRaisesMessage ImproperlyConfigured The included urlconf regressiontests.urlpatterns_reverse.no_urls doesn't have any patterns in it getattr resolver url_patterns N/A N/A URLPatternReverse N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.urls test_urlpattern_reverse N/A N/A self N/A N/A N/A N/A name expected args kwargs test_data N/A N/A N/A N/A got N/A reverse name args args kwargs kwargs N/A N/A N/A NoReverseMatch N/A N/A N/A N/A self assertEqual expected NoReverseMatch N/A N/A N/A N/A self assertEqual got expected N/A test_reverse_none N/A N/A self N/A N/A N/A N/A N/A self assertRaises NoReverseMatch reverse None N/A test_prefix_braces N/A N/A self N/A N/A N/A N/A N/A self assertEqual /%7B%7Binvalid%7D%7D/includes/non_path_include/ N/A reverse non_path_include prefix /{{invalid}}/ N/A test_prefix_parenthesis N/A N/A self N/A N/A N/A N/A N/A self assertEqual /bogus%29/includes/non_path_include/ N/A reverse non_path_include prefix /bogus)/ N/A test_prefix_format_char N/A N/A self N/A N/A N/A N/A N/A self assertEqual /bump%2520map/includes/non_path_include/ N/A reverse non_path_include prefix /bump%20map/ N/A N/A ResolverTests N/A N/A unittest TestCase N/A test_resolver_repr N/A N/A self N/A N/A N/A 
        Test repr of RegexURLResolver, especially when urlconf_name is a list
        (#17892).
         N/A resolver N/A get_resolver regressiontests.urlpatterns_reverse.namespace_urls N/A sub_resolver N/A N/A N/A resolver namespace_dict N/A test-ns1 N/A 1 N/A N/A N/A self assertIn <RegexURLPattern list> N/A repr sub_resolver N/A test_non_regex N/A N/A self N/A N/A N/A 
        Verifies that we raise a Resolver404 if what we are resolving doesn't
        meet the basic requirements of a path to match - i.e., at the very
        least, it matches the root pattern '^/'. We must never return None
        from resolve, or we will get a TypeError further down the line.

        Regression for #10834.
         N/A N/A N/A self assertRaises Resolver404 resolve N/A N/A N/A self assertRaises Resolver404 resolve a N/A N/A N/A self assertRaises Resolver404 resolve \ N/A N/A N/A self assertRaises Resolver404 resolve . N/A test_404_tried_urls_have_names N/A N/A self N/A N/A N/A 
        Verifies that the list of URLs that come back from a Resolver404
        exception contains a list in the right format for printing out in
        the DEBUG 404 page with both the patterns and URL names, if available.
         N/A urls regressiontests.urlpatterns_reverse.named_urls N/A url_types_names N/A N/A N/A type name RegexURLPattern named-url1 N/A N/A type name RegexURLPattern named-url2 N/A N/A type name RegexURLPattern None N/A N/A type RegexURLResolver N/A type name RegexURLPattern named-url3 N/A N/A type RegexURLResolver N/A type name RegexURLPattern named-url4 N/A N/A type RegexURLResolver N/A type name RegexURLPattern None N/A N/A type RegexURLResolver N/A type RegexURLResolver N/A N/A N/A N/A resolve /included/non-existent-url urlconf urls N/A N/A N/A self fail resolve did not raise a 404 N/A N/A N/A Resolver404 N/A e N/A N/A N/A N/A self assertTrue N/A tried N/A N/A e args N/A 0 N/A tried N/A N/A N/A e args N/A 0 N/A tried N/A N/A N/A self assertEqual N/A len N/A N/A N/A e args N/A 0 N/A tried N/A len url_types_names N/A Wrong number of tried URLs returned.  Expected %s, got %s. N/A N/A len url_types_names N/A len N/A N/A N/A e args N/A 0 N/A tried N/A N/A tried expected N/A zip N/A N/A N/A e args N/A 0 N/A tried url_types_names N/A N/A N/A t e N/A zip tried expected N/A N/A N/A N/A self assertTrue N/A isinstance t N/A e N/A type N/A N/A str %s is not an instance of %s N/A t N/A e N/A type N/A N/A name e N/A N/A N/A N/A e N/A name N/A N/A N/A N/A self assertTrue N/A N/A t name None N/A Expected no URL name but found %s. N/A t name N/A N/A N/A N/A self assertEqual N/A t name N/A e N/A name N/A Wrong URL name.  Expected "%s", got "%s". N/A N/A e N/A name N/A t name N/A N/A ReverseLazyTest N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.reverse_lazy_urls test_redirect_with_lazy_reverse N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /redirect/ N/A N/A N/A self assertRedirects response /redirected_to/ status_code 301 N/A test_user_permission_with_lazy_reverse N/A N/A self N/A N/A N/A user N/A N/A N/A User objects create_user alfred alfred@example.com password testpw N/A response N/A N/A N/A self client get /login_required_view/ N/A N/A N/A self assertRedirects response /login/?next=/login_required_view/ status_code 302 N/A N/A N/A N/A self client login username alfred password testpw N/A response N/A N/A N/A self client get /login_required_view/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A ReverseShortcutTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.urls test_redirect_to_object N/A N/A self N/A N/A FakeObj N/A object N/A get_absolute_url N/A N/A self N/A N/A N/A /hi-there/ N/A N/A N/A res N/A redirect N/A FakeObj N/A N/A N/A self assertTrue N/A isinstance res HttpResponseRedirect N/A N/A N/A self assertEqual N/A res N/A Location /hi-there/ N/A res N/A redirect N/A FakeObj permanent True N/A N/A N/A self assertTrue N/A isinstance res HttpResponsePermanentRedirect N/A N/A N/A self assertEqual N/A res N/A Location /hi-there/ N/A test_redirect_to_view_name N/A N/A self N/A N/A N/A res N/A redirect hardcoded2 N/A N/A N/A self assertEqual N/A res N/A Location /hardcoded/doc.pdf N/A res N/A redirect places 1 N/A N/A N/A self assertEqual N/A res N/A Location /places/1/ N/A res N/A redirect headlines year 2008 month 02 day 17 N/A N/A N/A self assertEqual N/A res N/A Location /headlines/2008.02.17/ N/A N/A N/A self assertRaises NoReverseMatch redirect not-a-view N/A test_redirect_to_url N/A N/A self N/A N/A N/A res N/A redirect /foo/ N/A N/A N/A self assertEqual N/A res N/A Location /foo/ N/A res N/A redirect http://example.com/ N/A N/A N/A self assertEqual N/A res N/A Location http://example.com/ N/A test_redirect_view_object N/A N/A self N/A N/A views absolute_kwargs_view N/A res N/A redirect absolute_kwargs_view N/A N/A N/A self assertEqual N/A res N/A Location /absolute_arg_view/ N/A N/A N/A self assertRaises NoReverseMatch redirect absolute_kwargs_view wrong_argument None N/A N/A NamespaceTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.namespace_urls test_ambiguous_object N/A N/A self N/A N/A N/A Names deployed via dynamic URL objects that require namespaces can't be resolved N/A N/A N/A self assertRaises NoReverseMatch reverse urlobject-view N/A N/A N/A self assertRaises NoReverseMatch reverse urlobject-view args N/A 37 42 N/A N/A N/A self assertRaises NoReverseMatch reverse urlobject-view kwargs N/A arg1 arg2 42 37 N/A test_ambiguous_urlpattern N/A N/A self N/A N/A N/A Names deployed via dynamic URL objects that require namespaces can't be resolved N/A N/A N/A self assertRaises NoReverseMatch reverse inner-nothing N/A N/A N/A self assertRaises NoReverseMatch reverse inner-nothing args N/A 37 42 N/A N/A N/A self assertRaises NoReverseMatch reverse inner-nothing kwargs N/A arg1 arg2 42 37 N/A test_non_existent_namespace N/A N/A self N/A N/A N/A Non-existent namespaces raise errors N/A N/A N/A self assertRaises NoReverseMatch reverse blahblah:urlobject-view N/A N/A N/A self assertRaises NoReverseMatch reverse test-ns1:blahblah:urlobject-view N/A test_normal_name N/A N/A self N/A N/A N/A Normal lookups work as expected N/A N/A N/A self assertEqual /normal/ N/A reverse normal-view N/A N/A N/A self assertEqual /normal/37/42/ N/A reverse normal-view args N/A 37 42 N/A N/A N/A self assertEqual /normal/42/37/ N/A reverse normal-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /+%5C$*/ N/A reverse special-view N/A test_simple_included_name N/A N/A self N/A N/A N/A Normal lookups work on names included from other patterns N/A N/A N/A self assertEqual /included/normal/ N/A reverse inc-normal-view N/A N/A N/A self assertEqual /included/normal/37/42/ N/A reverse inc-normal-view args N/A 37 42 N/A N/A N/A self assertEqual /included/normal/42/37/ N/A reverse inc-normal-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /included/+%5C$*/ N/A reverse inc-special-view N/A test_namespace_object N/A N/A self N/A N/A N/A Dynamic URL objects can be found using a namespace N/A N/A N/A self assertEqual /test1/inner/ N/A reverse test-ns1:urlobject-view N/A N/A N/A self assertEqual /test1/inner/37/42/ N/A reverse test-ns1:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /test1/inner/42/37/ N/A reverse test-ns1:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /test1/inner/+%5C$*/ N/A reverse test-ns1:urlobject-special-view N/A test_embedded_namespace_object N/A N/A self N/A N/A N/A Namespaces can be installed anywhere in the URL pattern tree N/A N/A N/A self assertEqual /included/test3/inner/ N/A reverse test-ns3:urlobject-view N/A N/A N/A self assertEqual /included/test3/inner/37/42/ N/A reverse test-ns3:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /included/test3/inner/42/37/ N/A reverse test-ns3:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /included/test3/inner/+%5C$*/ N/A reverse test-ns3:urlobject-special-view N/A test_namespace_pattern N/A N/A self N/A N/A N/A Namespaces can be applied to include()'d urlpatterns N/A N/A N/A self assertEqual /ns-included1/normal/ N/A reverse inc-ns1:inc-normal-view N/A N/A N/A self assertEqual /ns-included1/normal/37/42/ N/A reverse inc-ns1:inc-normal-view args N/A 37 42 N/A N/A N/A self assertEqual /ns-included1/normal/42/37/ N/A reverse inc-ns1:inc-normal-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /ns-included1/+%5C$*/ N/A reverse inc-ns1:inc-special-view N/A test_namespace_pattern_with_variable_prefix N/A N/A self N/A N/A N/A When using a include with namespaces when there is a regex variable in front of it N/A N/A N/A self assertEqual /ns-outer/42/normal/ N/A reverse inc-outer:inc-normal-view kwargs N/A outer 42 N/A N/A N/A self assertEqual /ns-outer/42/normal/ N/A reverse inc-outer:inc-normal-view args N/A 42 N/A N/A N/A self assertEqual /ns-outer/42/normal/37/4/ N/A reverse inc-outer:inc-normal-view kwargs N/A outer arg1 arg2 42 37 4 N/A N/A N/A self assertEqual /ns-outer/42/normal/37/4/ N/A reverse inc-outer:inc-normal-view args N/A 42 37 4 N/A N/A N/A self assertEqual /ns-outer/42/+%5C$*/ N/A reverse inc-outer:inc-special-view kwargs N/A outer 42 N/A N/A N/A self assertEqual /ns-outer/42/+%5C$*/ N/A reverse inc-outer:inc-special-view args N/A 42 N/A test_multiple_namespace_pattern N/A N/A self N/A N/A N/A Namespaces can be embedded N/A N/A N/A self assertEqual /ns-included1/test3/inner/ N/A reverse inc-ns1:test-ns3:urlobject-view N/A N/A N/A self assertEqual /ns-included1/test3/inner/37/42/ N/A reverse inc-ns1:test-ns3:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /ns-included1/test3/inner/42/37/ N/A reverse inc-ns1:test-ns3:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /ns-included1/test3/inner/+%5C$*/ N/A reverse inc-ns1:test-ns3:urlobject-special-view N/A test_nested_namespace_pattern N/A N/A self N/A N/A N/A Namespaces can be nested N/A N/A N/A self assertEqual /ns-included1/ns-included4/ns-included1/test3/inner/ N/A reverse inc-ns1:inc-ns4:inc-ns1:test-ns3:urlobject-view N/A N/A N/A self assertEqual /ns-included1/ns-included4/ns-included1/test3/inner/37/42/ N/A reverse inc-ns1:inc-ns4:inc-ns1:test-ns3:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /ns-included1/ns-included4/ns-included1/test3/inner/42/37/ N/A reverse inc-ns1:inc-ns4:inc-ns1:test-ns3:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /ns-included1/ns-included4/ns-included1/test3/inner/+%5C$*/ N/A reverse inc-ns1:inc-ns4:inc-ns1:test-ns3:urlobject-special-view N/A test_app_lookup_object N/A N/A self N/A N/A N/A A default application namespace can be used for lookup N/A N/A N/A self assertEqual /default/inner/ N/A reverse testapp:urlobject-view N/A N/A N/A self assertEqual /default/inner/37/42/ N/A reverse testapp:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /default/inner/42/37/ N/A reverse testapp:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /default/inner/+%5C$*/ N/A reverse testapp:urlobject-special-view N/A test_app_lookup_object_with_default N/A N/A self N/A N/A N/A A default application namespace is sensitive to the 'current' app can be used for lookup N/A N/A N/A self assertEqual /included/test3/inner/ N/A reverse testapp:urlobject-view current_app test-ns3 N/A N/A N/A self assertEqual /included/test3/inner/37/42/ N/A reverse testapp:urlobject-view args N/A 37 42 current_app test-ns3 N/A N/A N/A self assertEqual /included/test3/inner/42/37/ N/A reverse testapp:urlobject-view kwargs N/A arg1 arg2 42 37 current_app test-ns3 N/A N/A N/A self assertEqual /included/test3/inner/+%5C$*/ N/A reverse testapp:urlobject-special-view current_app test-ns3 N/A test_app_lookup_object_without_default N/A N/A self N/A N/A N/A An application namespace without a default is sensitive to the 'current' app can be used for lookup N/A N/A N/A self assertEqual /other2/inner/ N/A reverse nodefault:urlobject-view N/A N/A N/A self assertEqual /other2/inner/37/42/ N/A reverse nodefault:urlobject-view args N/A 37 42 N/A N/A N/A self assertEqual /other2/inner/42/37/ N/A reverse nodefault:urlobject-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /other2/inner/+%5C$*/ N/A reverse nodefault:urlobject-special-view N/A N/A N/A self assertEqual /other1/inner/ N/A reverse nodefault:urlobject-view current_app other-ns1 N/A N/A N/A self assertEqual /other1/inner/37/42/ N/A reverse nodefault:urlobject-view args N/A 37 42 current_app other-ns1 N/A N/A N/A self assertEqual /other1/inner/42/37/ N/A reverse nodefault:urlobject-view kwargs N/A arg1 arg2 42 37 current_app other-ns1 N/A N/A N/A self assertEqual /other1/inner/+%5C$*/ N/A reverse nodefault:urlobject-special-view current_app other-ns1 N/A test_special_chars_namespace N/A N/A self N/A N/A N/A N/A N/A self assertEqual /+%5C$*/included/normal/ N/A reverse special:inc-normal-view N/A N/A N/A self assertEqual /+%5C$*/included/normal/37/42/ N/A reverse special:inc-normal-view args N/A 37 42 N/A N/A N/A self assertEqual /+%5C$*/included/normal/42/37/ N/A reverse special:inc-normal-view kwargs N/A arg1 arg2 42 37 N/A N/A N/A self assertEqual /+%5C$*/included/+%5C$*/ N/A reverse special:inc-special-view N/A test_namespaces_with_variables N/A N/A self N/A N/A N/A Namespace prefixes can capture variables: see #15900 N/A N/A N/A self assertEqual /inc70/ N/A reverse inc-ns5:inner-nothing kwargs N/A outer 70 N/A N/A N/A self assertEqual /inc78/extra/foobar/ N/A reverse inc-ns5:inner-extra kwargs N/A outer extra 78 foobar N/A N/A N/A self assertEqual /inc70/ N/A reverse inc-ns5:inner-nothing args N/A 70 N/A N/A N/A self assertEqual /inc78/extra/foobar/ N/A reverse inc-ns5:inner-extra args N/A 78 foobar N/A N/A RequestURLconfTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self root_urlconf N/A settings ROOT_URLCONF N/A N/A self middleware_classes N/A settings MIDDLEWARE_CLASSES N/A N/A settings ROOT_URLCONF N/A urlconf_outer __name__ N/A tearDown N/A N/A self N/A N/A N/A N/A settings ROOT_URLCONF N/A self root_urlconf N/A N/A settings MIDDLEWARE_CLASSES N/A self middleware_classes N/A test_urlconf N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /test/me/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content outer:/test/me/,inner:/inner_urlconf/second_test/ N/A response N/A N/A N/A self client get /inner_urlconf/second_test/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A response N/A N/A N/A self client get /second_test/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A test_urlconf_overridden N/A N/A self N/A N/A N/A N/A settings MIDDLEWARE_CLASSES N/A N/A %s.ChangeURLconfMiddleware N/A middleware __name__ N/A response N/A N/A N/A self client get /test/me/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A response N/A N/A N/A self client get /inner_urlconf/second_test/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A response N/A N/A N/A self client get /second_test/ N/A N/A N/A self assertEqual N/A response status_code 200 N/A N/A N/A self assertEqual N/A response content outer:,inner:/second_test/ N/A test_urlconf_overridden_with_null N/A N/A self N/A N/A N/A N/A settings MIDDLEWARE_CLASSES N/A N/A %s.NullChangeURLconfMiddleware N/A middleware __name__ N/A N/A N/A self assertRaises ImproperlyConfigured N/A N/A self client get /test/me/ N/A N/A ErrorHandlerResolutionTests N/A TestCase N/A N/A Tests for handler404 and handler500 setUp N/A N/A self N/A N/A django.core.urlresolvers RegexURLResolver N/A urlconf regressiontests.urlpatterns_reverse.urls_error_handlers N/A urlconf_callables regressiontests.urlpatterns_reverse.urls_error_handlers_callables N/A N/A self resolver N/A RegexURLResolver ^$ urlconf N/A N/A self callable_resolver N/A RegexURLResolver ^$ urlconf_callables N/A test_named_handlers N/A N/A self N/A N/A views empty_view N/A handler N/A empty_view N/A N/A N/A N/A self assertEqual N/A N/A N/A self resolver resolve404 handler N/A N/A N/A self assertEqual N/A N/A N/A self resolver resolve500 handler N/A test_callable_handers N/A N/A self N/A N/A views empty_view N/A handler N/A empty_view N/A N/A N/A N/A self assertEqual N/A N/A N/A self callable_resolver resolve404 handler N/A N/A N/A self assertEqual N/A N/A N/A self callable_resolver resolve500 handler N/A N/A DefaultErrorHandlerTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.urls_without_full_import test_default_handler N/A N/A self N/A N/A N/A If the urls.py doesn't specify handlers, the defaults are used N/A N/A N/A response N/A N/A N/A self client get /test/ N/A N/A N/A self assertEqual N/A response status_code 404 N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Shouldn't get an AttributeError due to undefined 404 handler N/A N/A N/A N/A N/A self assertRaises ValueError N/A N/A self client get /bad_view/ N/A N/A N/A AttributeError N/A N/A N/A N/A self fail Shouldn't get an AttributeError due to undefined 500 handler N/A N/A NoRootUrlConfTests N/A TestCase N/A N/A Tests for handler404 and handler500 if urlconf is None N/A urls None test_no_handler_exception N/A N/A self N/A N/A N/A N/A N/A self assertRaises ImproperlyConfigured N/A N/A self client get /test/me/ N/A N/A ResolverMatchTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.namespace_urls test_urlpattern_resolve N/A N/A self N/A N/A N/A N/A path name app_name namespace func args kwargs resolve_test_data N/A N/A N/A match_func match_args match_kwargs N/A resolve path N/A N/A N/A self assertEqual match_func func N/A N/A N/A self assertEqual match_args args N/A N/A N/A self assertEqual match_kwargs kwargs N/A match N/A resolve path N/A N/A N/A self assertEqual N/A match __class__ ResolverMatch N/A N/A N/A self assertEqual N/A match url_name name N/A N/A N/A self assertEqual N/A match args args N/A N/A N/A self assertEqual N/A match kwargs kwargs N/A N/A N/A self assertEqual N/A match app_name app_name N/A N/A N/A self assertEqual N/A match namespace namespace N/A N/A N/A self assertEqual N/A match func func N/A N/A N/A self assertEqual N/A match N/A 0 func N/A N/A N/A self assertEqual N/A match N/A 1 args N/A N/A N/A self assertEqual N/A match N/A 2 kwargs N/A test_resolver_match_on_request N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /resolver_match/ N/A resolver_match N/A response resolver_match N/A N/A N/A self assertEqual N/A resolver_match url_name test-resolver-match N/A N/A ErroneousViewTests N/A TestCase N/A N/A urls regressiontests.urlpatterns_reverse.erroneous_urls test_erroneous_resolve N/A N/A self N/A N/A N/A N/A N/A self assertRaises ImportError N/A N/A self client get /erroneous_inner/ N/A N/A N/A self assertRaises ImportError N/A N/A self client get /erroneous_outer/ N/A N/A N/A self assertRaises ViewDoesNotExist N/A N/A self client get /missing_inner/ N/A N/A N/A self assertRaises ViewDoesNotExist N/A N/A self client get /missing_outer/ N/A N/A N/A self assertRaises ViewDoesNotExist N/A N/A self client get /uncallable/ N/A test_erroneous_reverse N/A N/A self N/A N/A N/A 
        Ensure that a useful exception is raised when a regex is invalid in the
        URLConf.
        Refs #6170.
         N/A N/A N/A self assertRaises ImproperlyConfigured reverse whatever blah blah N/A N/A ViewLoadingTests N/A TestCase N/A test_view_loading N/A N/A self N/A N/A N/A N/A N/A six assertRaisesRegex self ViewDoesNotExist .*View does not exist in.* get_callable regressiontests.urlpatterns_reverse.views.i_should_not_exist N/A N/A N/A self assertRaises AttributeError get_callable regressiontests.urlpatterns_reverse.views_broken.i_am_broken N/A N/A