[CalendarServer-changes] [10055] CalendarServer/branches/users/glyph/one-home-list-api
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 16 14:48:51 PST 2012
Revision: 10055
http://trac.calendarserver.org//changeset/10055
Author: glyph at apple.com
Date: 2012-11-16 14:48:51 -0800 (Fri, 16 Nov 2012)
Log Message:
-----------
Factor up 'service' method to base class so it can be more easily used from other tests.
Modified Paths:
--------------
CalendarServer/branches/users/glyph/one-home-list-api/twistedcaldav/directory/test/test_xmlfile.py
Property Changed:
----------------
CalendarServer/branches/users/glyph/one-home-list-api/
Modified: CalendarServer/branches/users/glyph/one-home-list-api/twistedcaldav/directory/test/test_xmlfile.py
===================================================================
--- CalendarServer/branches/users/glyph/one-home-list-api/twistedcaldav/directory/test/test_xmlfile.py 2012-11-16 22:48:50 UTC (rev 10054)
+++ CalendarServer/branches/users/glyph/one-home-list-api/twistedcaldav/directory/test/test_xmlfile.py 2012-11-16 22:48:51 UTC (rev 10055)
@@ -82,20 +82,14 @@
xmlFile.copyTo(self._xmlFile)
return self._xmlFile
+
def augmentsFile(self):
if not hasattr(self, "_augmentsFile"):
self._augmentsFile = FilePath(self.mktemp())
augmentsFile.copyTo(self._augmentsFile)
return self._augmentsFile
-class XMLFile (
- XMLFileBase,
- twistedcaldav.directory.test.util.BasicTestCase,
- twistedcaldav.directory.test.util.DigestTestCase
-):
- """
- Test XML file based directory implementation.
- """
+
def service(self):
directory = XMLDirectoryService(
{
@@ -107,6 +101,17 @@
)
return directory
+
+
+class XMLFile (
+ XMLFileBase,
+ twistedcaldav.directory.test.util.BasicTestCase,
+ twistedcaldav.directory.test.util.DigestTestCase
+):
+ """
+ Test XML file based directory implementation.
+ """
+
def test_changedXML(self):
service = self.service()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121116/a0425df9/attachment.html>
More information about the calendarserver-changes
mailing list