Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Dict Str Str Str Str Num NameLoad Dict Str Dict Str Str Str Str Dict Str Dict Str Str Str ListLoad Str Str NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list decorator_list Call NameLoad CompareGt NameLoad TupleLoad Num Num Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list Call NameLoad keyword TupleLoad TupleLoad Str Str keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword Dict Str Str Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list Call NameLoad keyword TupleLoad TupleLoad Str Str keyword Str keyword TupleLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr CompareIn Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Call NameLoad keyword TupleLoad TupleLoad Str Str keyword Str keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMult Str Num Assign NameStore BinOpAdd Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list Call NameLoad keyword TupleLoad TupleLoad Str Str keyword Str keyword NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ unicode_literals N/A copy N/A logging N/A sys N/A warnings django.conf compat_patch_logging_config LazySettings django.core mail django.test TestCase RequestFactory django.test.utils override_settings django.utils.encoding force_text django.utils.log CallbackFilter RequireDebugFalse django.utils.six StringIO django.utils.unittest skipUnless admin_scripts.tests AdminScriptTestCase N/A PYVERS N/A N/A sys version_info N/A 2 N/A OLD_LOGGING N/A version disable_existing_loggers handlers loggers 1 False N/A mail_admins N/A level class ERROR django.utils.log.AdminEmailHandler N/A django.request N/A handlers level propagate N/A mail_admins ERROR True PatchLoggingConfigTest N/A TestCase N/A N/A 
    Tests for backward-compat shim for #16288. These tests should be removed in
    Django 1.6 when that shim and DeprecationWarning are removed.

     test_filter_added N/A N/A self N/A N/A N/A 
        Test that debug-false filter is added to mail_admins handler if it has
        no filters.

         N/A config N/A N/A copy deepcopy OLD_LOGGING 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 compat_patch_logging_config config N/A N/A N/A self assertEqual N/A len w 1 N/A N/A N/A self assertEqual N/A N/A N/A config N/A handlers N/A mail_admins N/A filters N/A require_debug_false N/A test_filter_configuration N/A N/A self N/A N/A N/A 
        Test that the auto-added require_debug_false filter is an instance of
        `RequireDebugFalse` filter class.

         N/A config N/A N/A copy deepcopy OLD_LOGGING N/A N/A N/A warnings catch_warnings record True N/A N/A N/A compat_patch_logging_config config N/A flt N/A N/A config N/A filters N/A require_debug_false N/A N/A N/A self assertEqual N/A flt N/A () django.utils.log.RequireDebugFalse N/A test_require_debug_false_filter N/A N/A self N/A N/A N/A 
        Test the RequireDebugFalse filter class.

         N/A filter_ N/A RequireDebugFalse N/A N/A N/A self settings DEBUG True N/A N/A N/A N/A self assertEqual N/A N/A filter_ filter record is not used False N/A N/A N/A self settings DEBUG False N/A N/A N/A N/A self assertEqual N/A N/A filter_ filter record is not used True N/A test_no_patch_if_filters_key_exists N/A N/A self N/A N/A N/A 
        Test that the logging configuration is not modified if the mail_admins
        handler already has a "filters" key.

         N/A config N/A N/A copy deepcopy OLD_LOGGING N/A N/A N/A N/A config N/A handlers N/A mail_admins N/A filters N/A N/A new_config N/A N/A copy deepcopy config N/A N/A compat_patch_logging_config new_config N/A N/A N/A self assertEqual config new_config N/A test_no_patch_if_no_mail_admins_handler N/A N/A self N/A N/A N/A 
        Test that the logging configuration is not modified if the mail_admins
        handler is not present.

         N/A config N/A N/A copy deepcopy OLD_LOGGING N/A N/A N/A N/A config N/A handlers pop mail_admins N/A new_config N/A N/A copy deepcopy config N/A N/A compat_patch_logging_config new_config N/A N/A N/A self assertEqual config new_config N/A N/A DefaultLoggingTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self logger N/A N/A logging getLogger django N/A N/A self old_stream N/A N/A N/A N/A self logger handlers N/A 0 stream N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A self logger handlers N/A 0 stream N/A self old_stream N/A test_django_logger N/A N/A self N/A N/A N/A 
        The 'django' base logger only output anything when DEBUG=True.
         N/A output N/A StringIO N/A N/A N/A N/A N/A self logger handlers N/A 0 stream output N/A N/A N/A N/A self logger error Hey, this is an error. N/A N/A N/A self assertEqual N/A N/A output getvalue N/A N/A N/A self settings DEBUG True N/A N/A N/A N/A N/A self logger error Hey, this is an error. N/A N/A N/A self assertEqual N/A N/A output getvalue Hey, this is an error.
 N/A N/A WarningLoggerTests N/A TestCase N/A N/A 
    Tests that warnings output for DeprecationWarnings is enabled
    and captured to the logging system
     setUp N/A N/A self N/A N/A N/A N/A self logger N/A N/A logging getLogger py.warnings N/A N/A self outputs N/A N/A N/A self old_streams N/A N/A handler N/A N/A self logger handlers N/A N/A N/A N/A N/A self old_streams append N/A handler stream N/A N/A N/A N/A self outputs append N/A StringIO N/A N/A handler stream N/A N/A self outputs N/A -1 N/A tearDown N/A N/A self N/A N/A N/A N/A i handler N/A enumerate N/A N/A self logger handlers N/A N/A N/A N/A N/A N/A self logger handlers N/A i stream N/A N/A self old_streams N/A i N/A test_warnings_capture N/A N/A self N/A N/A N/A N/A N/A warnings warn Foo Deprecated DeprecationWarning N/A output N/A force_text N/A N/A N/A N/A self outputs N/A 0 getvalue N/A N/A N/A self assertTrue N/A Foo Deprecated output N/A N/A override_settings DEBUG True test_warnings_capture_debug_false N/A N/A self N/A N/A N/A N/A N/A warnings warn Foo Deprecated DeprecationWarning N/A output N/A force_text N/A N/A N/A N/A self outputs N/A 0 getvalue N/A N/A N/A self assertFalse N/A Foo Deprecated output N/A N/A N/A skipUnless N/A PYVERS N/A 2 6 warnings captured only in Python >= 2.7 CallbackFilterTest N/A TestCase N/A test_sense N/A N/A self N/A N/A N/A f_false N/A CallbackFilter N/A N/A N/A r N/A False N/A f_true N/A CallbackFilter N/A N/A N/A r N/A True N/A N/A N/A self assertEqual N/A N/A f_false filter record False N/A N/A N/A self assertEqual N/A N/A f_true filter record True N/A test_passes_on_record N/A N/A self N/A N/A N/A collector N/A _callback N/A N/A record N/A N/A N/A N/A N/A collector append record N/A True N/A N/A f N/A CallbackFilter _callback N/A N/A N/A f filter a record N/A N/A N/A self assertEqual collector N/A a record N/A N/A AdminEmailHandlerTest N/A TestCase N/A N/A logger N/A N/A logging getLogger django.request get_admin_email_handler N/A N/A self logger N/A N/A N/A admin_email_handler N/A N/A h N/A h N/A logger handlers N/A N/A N/A h __class__ __name__ AdminEmailHandler N/A 0 N/A admin_email_handler N/A test_accepts_args N/A N/A self N/A N/A N/A 
        Ensure that user-supplied arguments and the EMAIL_SUBJECT_PREFIX
        setting are used to compose the email subject.
        Refs #16736.
         N/A message Custom message that says '%s' and '%s' N/A token1 ping N/A token2 pong N/A admin_email_handler N/A N/A self get_admin_email_handler N/A self logger N/A orig_filters N/A admin_email_handler filters N/A N/A N/A N/A admin_email_handler filters N/A N/A N/A N/A N/A self logger error message token1 token2 N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 to N/A admin@example.com N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 subject -SuperAwesomeSubject-ERROR: Custom message that says 'ping' and 'pong' N/A N/A N/A admin_email_handler filters orig_filters N/A N/A override_settings ADMINS N/A N/A whatever admin admin@example.com EMAIL_SUBJECT_PREFIX -SuperAwesomeSubject- test_accepts_args_and_request N/A N/A self N/A N/A N/A 
        Ensure that the subject is also handled if being
        passed a request object.
         N/A message Custom message that says '%s' and '%s' N/A token1 ping N/A token2 pong N/A admin_email_handler N/A N/A self get_admin_email_handler N/A self logger N/A orig_filters N/A admin_email_handler filters N/A N/A N/A N/A admin_email_handler filters N/A N/A rf N/A RequestFactory N/A request N/A N/A rf get / N/A N/A N/A N/A self logger error message token1 token2 extra N/A status_code request 403 request N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 to N/A admin@example.com N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 subject -SuperAwesomeSubject-ERROR (internal IP): Custom message that says 'ping' and 'pong' N/A N/A N/A admin_email_handler filters orig_filters N/A N/A override_settings ADMINS N/A N/A whatever admin admin@example.com EMAIL_SUBJECT_PREFIX -SuperAwesomeSubject- INTERNAL_IPS N/A 127.0.0.1 test_subject_accepts_newlines N/A N/A self N/A N/A N/A 
        Ensure that newlines in email reports' subjects are escaped to avoid
        AdminErrorHandler to fail.
        Refs #17281.
         N/A message Message 
 with newlines N/A expected_subject ERROR: Message \r\n with newlines N/A N/A N/A self assertEqual N/A len N/A mail outbox 0 N/A N/A N/A N/A self logger error message N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertFalse N/A N/A N/A N/A mail outbox N/A 0 subject N/A N/A N/A self assertFalse N/A N/A N/A N/A mail outbox N/A 0 subject N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 subject expected_subject N/A N/A override_settings ADMINS N/A N/A admin admin@example.com EMAIL_SUBJECT_PREFIX DEBUG False test_truncate_subject N/A N/A self N/A N/A N/A 
        RFC 2822's hard limit is 998 characters per line.
        So, minus "Subject: ", the actual subject must be no longer than 989
        characters.
        Refs #17281.
         N/A message N/A a 1000 N/A expected_subject N/A ERROR: aa N/A a 980 N/A N/A N/A self assertEqual N/A len N/A mail outbox 0 N/A N/A N/A N/A self logger error message N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 subject expected_subject N/A N/A override_settings ADMINS N/A N/A admin admin@example.com EMAIL_SUBJECT_PREFIX DEBUG False N/A SettingsConfigTest N/A AdminScriptTestCase N/A N/A 
    Test that accessing settings in a custom logging handler does not trigger
    a circular import error.
     setUp N/A N/A self N/A N/A N/A log_config {
    'version': 1,
    'handlers': {
        'custom_handler': {
            'level': 'INFO',
            'class': 'logging_tests.logconfig.MyHandler',
        }
    }
} N/A N/A N/A self write_settings settings.py sdict N/A LOGGING log_config N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self remove_settings settings.py N/A test_circular_dependency N/A N/A self N/A N/A N/A N/A out err N/A N/A self run_manage N/A validate N/A N/A N/A self assertNoOutput err N/A N/A N/A self assertOutput out 0 errors found N/A N/A dictConfig N/A N/A config N/A N/A N/A N/A dictConfig called True N/A N/A N/A dictConfig called False SettingsConfigureLogging N/A TestCase N/A N/A 
    Test that calling settings.configure() initializes the logging
    configuration.
     test_configure_initializes_logging N/A N/A self N/A N/A N/A settings N/A LazySettings N/A N/A N/A settings configure LOGGING_CONFIG regressiontests.logging_tests.tests.dictConfig N/A N/A N/A self assertTrue N/A dictConfig called N/A N/A