diff --git a/devel/test.py b/devel/test.py index 65d81b9..511d0af 100755 --- a/devel/test.py +++ b/devel/test.py @@ -120,7 +120,7 @@ class TestHelper(unittest.TestCase): def assertIsIndex(self, body, path): self.assertContains(body, - '../', + '../', 'Generated by darkhttpd') def assertIsInvalid(self, body, path): @@ -178,8 +178,8 @@ class TestDirList(TestHelper): resp = self.get("/") status, hdrs, body = parse(resp) self.assertLess(b'(', b'..') # ( sorts before .. - paren_pos = body.index(b'(/') - dotdot_pos = body.index(b'../') + paren_pos = body.index(b'(/') + dotdot_pos = body.index(b'../') # But we special-case .. to come first self.assertLess(dotdot_pos, paren_pos)