From 71bf96333e98d15a3806eb4008cdeae09e25b40e Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 16 Feb 2012 12:15:26 -0700 Subject: [PATCH] maybe really fix testFiles --- tests/default/files/2.txt | 0 tests/test.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 tests/default/files/2.txt diff --git a/tests/default/files/2.txt b/tests/default/files/2.txt deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test.py b/tests/test.py index fb708db..5018296 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[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') + 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] 1.txt\n
\n') + self.assertEqual(se, b'10.1.2.3 200 110 default:80 (null) (null) /files/\n') class CGITests(BasicTests):