diff --git a/tests/default/files/1.txt b/tests/default/files/1.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/default/files/2.txt b/tests/default/files/2.txt new file mode 100644 index 0000000..e69de29 diff --git a/tests/test.py b/tests/test.py index f867fb9..fb708db 100755 --- a/tests/test.py +++ b/tests/test.py @@ -67,8 +67,8 @@ class DirTests(BasicTests): def testFiles(self): so, se = self.get('/files/', 'default') - self.assertEqual(so, b'HTTP/1.0 200 OK\r\nServer: fnord/2.0\r\nConnection: close\r\nContent-Type: text/html; charset=utf-8\r\n\r\n
\nParent directory\n\n') - self.assertEqual(se, b'10.1.2.3 200 78 default:80 (null) (null) /files/\n') + self.assertEqual(so, b'HTTP/1.0 200 OK\r\nServer: fnord/2.0\r\nConnection: close\r\nContent-Type: text/html; charset=utf-8\r\n\r\n
\nParent directory\n[TXT] 2.txt\n[TXT] 1.txt\n\n') + self.assertEqual(se, b'10.1.2.3 200 142 default:80 (null) (null) /files/\n') class CGITests(BasicTests):