Module Expr Str ImportFrom alias Import alias ImportFrom alias identifier Import alias ImportFrom alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad keyword ListLoad Str body With Call AttributeLoad NameLoad attr NameLoad body Import alias Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad Num Num Str Str Str Str Str Import alias Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr keyword NameLoad NameStore body With Call NameLoad Dict NameLoad NameLoad body Expr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body If CompareIn Str Call NameLoad AttributeLoad NameLoad attr body If CompareIn NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A Test suite around :mod:`django_downloadview.api` and deprecation plan. importlib import_module N/A unittest six.moves reload_module reload N/A warnings django.core.exceptions ImproperlyConfigured N/A django.test django.test.utils override_settings APITestCase N/A N/A unittest TestCase N/A N/A Make sure django_downloadview exposes API. assert_module_attributes N/A N/A self module_path attribute_names N/A N/A N/A Assert imported ``module_path`` has ``attribute_names``. N/A module N/A import_module module_path N/A missing_attributes N/A N/A attribute_name attribute_names N/A N/A N/A N/A hasattr module attribute_name N/A N/A N/A N/A missing_attributes append attribute_name N/A missing_attributes N/A N/A N/A N/A self fail N/A N/A Missing attributes in "{module}": {attributes} format module module_path attributes N/A N/A ,  join missing_attributes N/A test_root_attributes N/A N/A self N/A N/A N/A API is exposed in django_downloadview root package.

        The goal of this test is to make sure that main items of project's API
        are easy to import... and prevent refactoring from breaking main API.

        If this test is broken by refactoring, a :class:`DeprecationWarning` or
        simimar should be raised.

         N/A api N/A ObjectDownloadView StorageDownloadView PathDownloadView HTTPDownloadView VirtualDownloadView BaseDownloadView DownloadMixin StorageFile HTTPFile VirtualFile DownloadResponse ProxiedDownloadResponse BaseDownloadMiddleware DownloadDispatcherMiddleware SmartDownloadMiddleware assert_download_response setup_view temporary_media_root StringIteratorIO sendfile N/A N/A N/A self assert_module_attributes django_downloadview api N/A test_nginx_attributes N/A N/A self N/A N/A N/A Nginx-related API is exposed in django_downloadview.nginx. N/A api N/A XAccelRedirectResponse XAccelRedirectMiddleware x_accel_redirect assert_x_accel_redirect N/A N/A N/A self assert_module_attributes django_downloadview.nginx api N/A test_apache_attributes N/A N/A self N/A N/A N/A Apache-related API is exposed in django_downloadview.apache. N/A api N/A XSendfileResponse XSendfileMiddleware x_sendfile assert_x_sendfile N/A N/A N/A self assert_module_attributes django_downloadview.apache api N/A test_lighttpd_attributes N/A N/A self N/A N/A N/A Lighttpd-related API is exposed in django_downloadview.lighttpd. N/A api N/A XSendfileResponse XSendfileMiddleware x_sendfile assert_x_sendfile N/A N/A N/A self assert_module_attributes django_downloadview.lighttpd api N/A N/A DeprecatedAPITestCase N/A N/A N/A django test SimpleTestCase N/A N/A Make sure using deprecated items raise DeprecationWarning. test_nginx_x_accel_redirect_middleware N/A N/A self N/A N/A N/A XAccelRedirectMiddleware in settings triggers ImproperlyConfigured. N/A N/A override_settings MIDDLEWARE_CLASSES N/A django_downloadview.nginx.XAccelRedirectMiddleware N/A N/A N/A N/A self assertRaises ImproperlyConfigured N/A N/A django_downloadview.nginx.settings N/A N/A reload N/A N/A django_downloadview nginx settings N/A test_nginx_x_accel_redirect_global_settings N/A N/A self N/A N/A N/A Global settings for Nginx middleware are deprecated. N/A settings_overrides N/A NGINX_DOWNLOAD_MIDDLEWARE_WITH_BUFFERING NGINX_DOWNLOAD_MIDDLEWARE_LIMIT_RATE NGINX_DOWNLOAD_MIDDLEWARE_EXPIRES NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_ROOT NGINX_DOWNLOAD_MIDDLEWARE_SOURCE_DIR NGINX_DOWNLOAD_MIDDLEWARE_SOURCE_URL NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_URL NGINX_DOWNLOAD_MIDDLEWARE_DESTINATION_URL True 32 3600 / / / / / N/A django_downloadview.nginx.settings N/A missed_warnings N/A N/A N/A setting_name setting_value N/A N/A settings_overrides items N/A N/A N/A N/A warnings resetwarnings N/A N/A N/A warnings simplefilter always N/A N/A N/A warnings catch_warnings record True warning_list N/A N/A N/A override_settings N/A setting_name setting_value N/A N/A N/A reload N/A N/A django_downloadview nginx settings N/A caught False N/A warning_item warning_list N/A N/A N/A N/A warning_item category DeprecationWarning N/A N/A N/A deprecated N/A str N/A warning_item message N/A N/A N/A setting_name N/A str N/A warning_item message N/A N/A caught True N/A N/A N/A caught N/A N/A N/A N/A missed_warnings append setting_name N/A missed_warnings N/A N/A N/A N/A self fail N/A N/A No DeprecationWarning raised about following settings: {settings}. format settings N/A N/A ,  join missed_warnings N/A N/A