[CalendarServer-changes] [3730] CalendarServer/trunk/twistedcaldav/directory/test/test_xmlfile.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 24 14:52:51 PST 2009
Revision: 3730
http://trac.macosforge.org/projects/calendarserver/changeset/3730
Author: wsanchez at apple.com
Date: 2009-02-24 14:52:50 -0800 (Tue, 24 Feb 2009)
Log Message:
-----------
All groups are disabled. There's no need to raise when someone disables a group calendar.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/test/test_xmlfile.py
Modified: CalendarServer/trunk/twistedcaldav/directory/test/test_xmlfile.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/test/test_xmlfile.py 2009-02-24 22:44:12 UTC (rev 3729)
+++ CalendarServer/trunk/twistedcaldav/directory/test/test_xmlfile.py 2009-02-24 22:52:50 UTC (rev 3730)
@@ -201,31 +201,11 @@
set(r.shortNames[0] for r in service.listRecords(recordType)),
set(expectedRecords)
)
- self.assertTrue(service.recordWithShortName(DirectoryService.recordType_groups, "enabled").enabledForCalendaring)
+
+ # All groups are disabled
+ self.assertFalse(service.recordWithShortName(DirectoryService.recordType_groups, "enabled").enabledForCalendaring)
self.assertFalse(service.recordWithShortName(DirectoryService.recordType_groups, "disabled").enabledForCalendaring)
- def test_badDisableCalendar(self):
- service = self.service()
-
- self.xmlFile().open("w").write(
-"""<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE accounts SYSTEM "accounts.dtd">
-<accounts realm="Test Realm">
- <location>
- <uid>my office</uid>
- <password>nimda</password>
- <name>Super User</name>
- <disable-calendar/>
- </location>
-</accounts>
-"""
- )
-
- def _findRecords():
- set(r.shortNames[0] for r in service.listRecords(DirectoryService.recordType_users))
-
- self.assertRaises(ValueError, _findRecords)
-
def test_okProxies(self):
service = self.service()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090224/e77b8040/attachment.html>
More information about the calendarserver-changes
mailing list