From 1f166293b7aa6dd452626246131707224e1d6c95 Mon Sep 17 00:00:00 2001 From: Emil Mikulic Date: Sun, 2 Oct 2022 11:38:12 +1100 Subject: [PATCH] Update tests after adding slash to href for directories. --- devel/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)