It is declared at module level: https://github.com/benoitbryon/django-downloadview/blob/80-no-attachment-docs/demo/demoproject/object/tests.py#L11