[CalendarServer-changes] [5905] CalendarServer/branches/new-store/twistedcaldav/test/test_validation .py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jul 14 12:59:17 PDT 2010
Revision: 5905
http://trac.macosforge.org/projects/calendarserver/changeset/5905
Author: cdaboo at apple.com
Date: 2010-07-14 12:59:15 -0700 (Wed, 14 Jul 2010)
Log Message:
-----------
Cheat on this test for now. Eventually CalDAVFile will go away...
Modified Paths:
--------------
CalendarServer/branches/new-store/twistedcaldav/test/test_validation.py
Modified: CalendarServer/branches/new-store/twistedcaldav/test/test_validation.py
===================================================================
--- CalendarServer/branches/new-store/twistedcaldav/test/test_validation.py 2010-07-14 19:38:44 UTC (rev 5904)
+++ CalendarServer/branches/new-store/twistedcaldav/test/test_validation.py 2010-07-14 19:59:15 UTC (rev 5905)
@@ -39,8 +39,14 @@
"""
Set up some CalDAV stuff.
"""
- self.destination = CalDAVFile(self.mktemp())
- self.destinationParent = CalDAVFile(self.mktemp())
+
+ class CalDAVFileWithName(CalDAVFile):
+
+ def name(self):
+ return self.fp.basename()
+
+ self.destination = CalDAVFileWithName(self.mktemp())
+ self.destinationParent = CalDAVFileWithName(self.mktemp())
self.sampleCalendar = Component.fromString("""
BEGIN:VCALENDAR
VERSION:2.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100714/45f54ca2/attachment.html>
More information about the calendarserver-changes
mailing list