[sldev-commits] r88 - trunk/certified_http

which.linden at svn.secondlife.com which.linden at svn.secondlife.com
Tue Dec 4 19:56:44 PST 2007


Author: which.linden
Date: 2007-12-04 21:56:44 -0600 (Tue, 04 Dec 2007)
New Revision: 88

Modified:
   trunk/certified_http/server_test.py
Trac: http://svn.secondlife.com/trac/certified_http/changeset/88
Log:
Server test now correctly expects a 408, not a 403.

Modified: trunk/certified_http/server_test.py
===================================================================
--- trunk/certified_http/server_test.py	2007-12-05 03:00:21 UTC (rev 87)
+++ trunk/certified_http/server_test.py	2007-12-05 03:56:44 UTC (rev 88)
@@ -156,7 +156,8 @@
 
     def test_clock_skew(self):
         date = httpdate.format_date_time(time.time() - oplog._skew - 1)
-        self.assertRaises(httpc.Forbidden, httpc.get_, 'http://localhost:9903/', headers={'X-Message-Id':'abc', 'Date': date})
+        status, headers, body = httpc.get_('http://localhost:9903/', headers={'X-Message-Id':'abc', 'Date': date}, ok=(408,))
+        self.assertEquals(status, 408)
 
     def test_ok_clock_skew(self):
         date = httpdate.format_date_time(time.time() - oplog._skew + 1)



More information about the sldev-commits mailing list