[CalendarServer-changes] [240] CalDAVTester/trunk/verifiers/dataMatch.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 09:05:38 PDT 2006


Revision: 240
          http://trac.macosforge.org/projects/calendarserver/changeset/240
Author:   cdaboo at apple.com
Date:     2006-10-04 09:05:37 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
Need to do key/value substitutions in data.

Modified Paths:
--------------
    CalDAVTester/trunk/verifiers/dataMatch.py

Modified: CalDAVTester/trunk/verifiers/dataMatch.py
===================================================================
--- CalDAVTester/trunk/verifiers/dataMatch.py	2006-10-04 16:02:44 UTC (rev 239)
+++ CalDAVTester/trunk/verifiers/dataMatch.py	2006-10-04 16:05:37 UTC (rev 240)
@@ -16,6 +16,8 @@
 # DRI: Cyrus Daboo, cdaboo at apple.com
 ##
 
+from tests.serverinfo import serverinfo
+
 """
 Verifier that checks the response body for an exact match to data in a file.
 """
@@ -51,6 +53,8 @@
         if data is None:
             return False, "        Could not read data file"
 
+        data = serverinfo.subs(data)
+
         if data != respdata:
             data = data.replace("\n", "\r\n")
             if data != respdata:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061004/6f6f80fa/attachment.html


More information about the calendarserver-changes mailing list