[Checkins] SVN: z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/ftests.py Now that we can correctly parse the if header, we need to fix up the tests

Michael Kerrin michael.kerrin at openapp.ie
Thu May 31 15:54:09 EDT 2007


Log message for revision 76060:
  Now that we can correctly parse the if header, we need to fix up the tests
  with valid if headers.
  

Changed:
  U   z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/ftests.py

-=-
Modified: z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/ftests.py
===================================================================
--- z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/ftests.py	2007-05-31 19:44:59 UTC (rev 76059)
+++ z3c.davapp.zopelocking/trunk/src/z3c/davapp/zopelocking/ftests.py	2007-05-31 19:54:08 UTC (rev 76060)
@@ -538,7 +538,7 @@
         response = self.publish("/a/r2", basic = "mgr:mgrpw",
                                 env = {"REQUEST_METHOD": "LOCK",
                                        "TIMEOUT": "Second-3600",
-                                       "IF": "<%s>" % locktoken})
+                                       "IF": "(<%s>)" % locktoken})
 
         self.assertEqual(response.getStatus(), 200)
         assertXMLEqual(response.getBody(), """<ns0:prop xmlns:ns0="DAV:">
@@ -570,7 +570,7 @@
         response = self.publish("/testresource", basic = "mgr:mgrpw",
                                 env = {"REQUEST_METHOD": "LOCK",
                                        "TIMEOUT": "Second-3600",
-                                       "IF": "<BADLOCKTOKEN>"},
+                                       "IF": "(<BADLOCKTOKEN>)"},
                                 handle_errors = True)
 
         self.assertEqual(response.getStatus(), 412)
@@ -600,7 +600,7 @@
         response = self.publish("/testresource", basic = "mgr:mgrpw",
                                 env = {"REQUEST_METHOD": "LOCK",
                                        "TIMEOUT": "Second-3600",
-                                       "IF": "<BADLOCKTOKEN>"},
+                                       "IF": "(<BADLOCKTOKEN>)"},
                                 handle_errors = True)
 
         self.assertEqual(response.getStatus(), 412)



More information about the Checkins mailing list