Updated tests to reflect last bug fix
This commit is contained in:
parent
39765dfd2f
commit
fe3d4328ec
|
@ -43,9 +43,10 @@ class UrlExtensionFilterTest(unittest.TestCase):
|
|||
self.assertEqual('/v2.0', env['PATH_INFO'])
|
||||
|
||||
def test_remove_trailing_slash_from_empty_path(self):
|
||||
"""Empty paths should still equate to a slash"""
|
||||
env = {'PATH_INFO': '/'}
|
||||
self.filter(env, _start_response)
|
||||
self.assertEqual('', env['PATH_INFO'])
|
||||
self.assertEqual('/', env['PATH_INFO'])
|
||||
|
||||
def test_no_extension(self):
|
||||
env = {'PATH_INFO': '/v2.0/someresource'}
|
||||
|
|
Loading…
Reference in New Issue