Chris McDonough
2011-09-08 66fe31ffbc821bb6d57eb441d3f19797f370e85b
add another oob test
1 files modified
7 ■■■■ changed files
pyramid/tests/test_integration.py 7 ●●●● patch | view | raw | blame | history
pyramid/tests/test_integration.py
@@ -131,13 +131,18 @@
    def test_notfound(self):
        self.testapp.get('/static/wontbefound.html', status=404)
    def test_oob_doubledot(self):
    def test_oob_dotdotslash(self):
        self.testapp.get('/static/../../test_integration.py', status=404)
    def test_oob_dotdotslash_encoded(self):
        self.testapp.get('/static/%2E%2E%2F/test_integration.py', status=404)
        # XXX pdb this
    def test_oob_slash(self):
        self.testapp.get('/%2F/test_integration.py', status=404)
        # XXX pdb this
class TestStaticAppUsingAbsPath(TestStaticAppBase, unittest.TestCase):
    package = 'pyramid.tests.pkgs.static_abspath'