[CalendarServer-changes] [5579] CalendarServer/branches/users/wsanchez/transations/twistedcaldav/ test/test_wrapping.py
source_changes at macosforge.org
source_changes at macosforge.org
Sun May 9 15:42:11 PDT 2010
Revision: 5579
http://trac.macosforge.org/projects/calendarserver/changeset/5579
Author: glyph at apple.com
Date: 2010-05-09 15:42:09 -0700 (Sun, 09 May 2010)
Log Message:
-----------
Factory out directory-service-creation logic.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/transations/twistedcaldav/test/test_wrapping.py
Modified: CalendarServer/branches/users/wsanchez/transations/twistedcaldav/test/test_wrapping.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/twistedcaldav/test/test_wrapping.py 2010-05-09 22:40:43 UTC (rev 5578)
+++ CalendarServer/branches/users/wsanchez/transations/twistedcaldav/test/test_wrapping.py 2010-05-09 22:42:09 UTC (rev 5579)
@@ -48,13 +48,10 @@
# should probably be refactored, perhaps even to call (some part of) the
# actual root-resource construction logic?
super(WrappingTests, self).setUp()
+
# Setup the initial directory
- self.xmlFile = FilePath(config.DataRoot).child("accounts.xml")
- self.xmlFile.setContent(xmlFile.getContent())
- self.directoryService = XMLDirectoryService({'xmlFile' :
- "accounts.xml"})
- augment.AugmentService = augment.AugmentXMLDB(
- xmlFiles=(augmentsFile.path,))
+ self.createStockDirectoryService()
+
# Set up a principals hierarchy for each service we're testing with
provisioningResource = DirectoryPrincipalProvisioningResource(
"/principals/", self.directoryService
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100509/c0cf4cac/attachment-0001.html>
More information about the calendarserver-changes
mailing list