swift/test/unit/common
Peter Portante 4f6d89ab51 Import filter and app into namespace correctly
The module used to simply "import swift", and then reference
the classes:

    swift.common.middleware.catch_errors.CatchErrorsMiddleware
    swift.proxy.server.Application

in order to very that the WSGI services loaded the proper filters and
apps.

However, those references only happen to work, as the WSGI loading
would properly import the rest of the path so that the namespace
reference would be okay. If the WSGI configuration were to change, or
if the behavior of WSGI broke, instead of of seeing the actual failure
condition, a module attribute error would result instead:

    AttributeError: 'module' object has no attribute 'middleware'

The referenced names are now properly imported with this change to
avoid misleading error conditions.

Change-Id: Ifff4271bc5be1136bf17e4e5b291b01033d608db
Signed-off-by: Peter Portante <peter.portante@redhat.com>
2013-11-21 13:11:02 -05:00
..
middleware Merge "Handle COPY verb in account quota middleware" 2013-11-21 10:21:43 +00:00
ring Default region loading an old-style pickled ring 2013-11-07 15:55:39 +00:00
__init__.py Initial commit of Swift code 2010-07-12 17:03:45 -05:00
corrupted_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
malformed_example.db Real files for bad databases. 2011-08-02 18:21:25 +00:00
test_bench.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_bufferedhttp.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_constraints.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_daemon.py Revert "Refactor common/utils methods to common/ondisk" 2013-10-07 17:18:09 -04:00
test_db_replicator.py Revert "Refactor common/utils methods to common/ondisk" 2013-10-07 17:18:09 -04:00
test_db.py Merge "Use utils.ismount in place of os.path.ismount" 2013-11-21 08:37:10 +00:00
test_direct_client.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_exceptions.py Object replication ssync (an rsync alternative) 2013-11-07 16:52:01 +00:00
test_internal_client.py Merge "Change OpenStack LLC to Foundation" 2013-10-07 16:09:37 +00:00
test_manager.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
test_memcached.py return value on memcache client decr call 2013-10-15 15:41:20 +00:00
test_swob.py Add WWW-Authenticate to 401 responses 2013-10-22 15:49:09 +01:00
test_utils.py early quorum responses 2013-11-07 01:48:14 +00:00
test_wsgi.py Import filter and app into namespace correctly 2013-11-21 13:11:02 -05:00