From b2779488c8607e8df9a8c0ef202ed41c921cc370 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 16 Feb 2012 12:13:41 -0700 Subject: [PATCH] fix testFiles --- tests/default/files/1.txt | 0 tests/default/files/2.txt | 0 tests/test.py | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/default/files/1.txt create mode 100644 tests/default/files/2.txt 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

Directory Listing: /files/

\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

Directory Listing: /files/

\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):