PEPy fixes

This commit is contained in:
gholt 2010-11-03 09:04:44 -07:00
parent d13b3b318d
commit 67504c595a
2 changed files with 6 additions and 2 deletions

View File

@ -21,10 +21,10 @@ class DomainRemapMiddleware(object):
"""
Middleware that translates container and account parts of a domain to
path parameters that the proxy server understands.
container.account.storageurl/object gets translated to
container.account.storageurl/path_root/account/container/object
account.storageurl/path_root/container/object gets translated to
account.storageurl/path_root/account/container/object
"""

View File

@ -19,13 +19,17 @@ from webob import Request
from swift.common.middleware import domain_remap
class FakeApp(object):
def __call__(self, env, start_response):
return env['PATH_INFO']
def start_response(*args):
pass
class TestDomainRemap(unittest.TestCase):
def setUp(self):