[CalendarServer-changes] [1740] CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/ test/test_root.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Jul 31 14:19:45 PDT 2007


Revision: 1740
          http://trac.macosforge.org/projects/calendarserver/changeset/1740
Author:   wsanchez at apple.com
Date:     2007-07-31 14:19:45 -0700 (Tue, 31 Jul 2007)

Log Message:
-----------
trap HTTPError before assuming we have one

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/test/test_root.py

Modified: CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/test/test_root.py
===================================================================
--- CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/test/test_root.py	2007-07-31 20:56:31 UTC (rev 1739)
+++ CalendarServer/branches/users/wsanchez/deleted-uids/twistedcaldav/test/test_root.py	2007-07-31 21:19:45 UTC (rev 1740)
@@ -169,6 +169,7 @@
                                          ['principals'])
 
         def _Eb(failure):
+            failure.trap(HTTPError)
             self.assertEquals(failure.value.response.code, 403)
             
         d = defer.maybeDeferred(resrc.locateChild, request, ['principals'])
@@ -198,7 +199,6 @@
 
         def _Eb(failure):
             failure.trap(HTTPError)
-
             self.assertEquals(failure.value.response.code, 401)
 
         d = defer.maybeDeferred(resrc.locateChild, request, ['principals'])
@@ -229,6 +229,7 @@
                                          ['principals'])
 
         def _Eb(failure):
+            failure.trap(HTTPError)
             self.assertEquals(failure.value.response.code, 401)
             
         d = defer.maybeDeferred(resrc.locateChild, request, ['principals'])
@@ -275,4 +276,4 @@
             headers=http_headers.Headers({"Destination":"/copy/"})
         )
         return self.send(request, do_test)
-        
\ No newline at end of file
+        

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070731/2eea86ed/attachment.html


More information about the calendarserver-changes mailing list