[CalendarServer-changes] [11971] CalendarServer/trunk/twext/who/test/test_index.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:16:30 PDT 2014
Revision: 11971
http://trac.calendarserver.org//changeset/11971
Author: wsanchez at apple.com
Date: 2013-11-19 08:58:13 -0800 (Tue, 19 Nov 2013)
Log Message:
-----------
Add some placeholders
Modified Paths:
--------------
CalendarServer/trunk/twext/who/test/test_index.py
Modified: CalendarServer/trunk/twext/who/test/test_index.py
===================================================================
--- CalendarServer/trunk/twext/who/test/test_index.py 2013-11-19 16:45:53 UTC (rev 11970)
+++ CalendarServer/trunk/twext/who/test/test_index.py 2013-11-19 16:58:13 UTC (rev 11971)
@@ -77,6 +77,15 @@
self.assertRaises(NotImplementedError, service.loadRecords)
+ def test_indexRecords(self):
+ """
+ L{DirectoryService.indexRecords} populates the index.
+ """
+ raise NotImplementedError()
+
+ test_indexRecords.todo = "Unimplemented"
+
+
def test_flush(self):
"""
C{flush} sets the index to C{None}.
@@ -86,7 +95,36 @@
service.flush()
self.assertTrue(emptyIndex(service._index))
+ test_flush.todo = "Redo this"
+
+ def test_indexedRecordsFromMatchExpression(self):
+ """
+ L{DirectoryService.indexedRecordsFromMatchExpression} ...
+ """
+ raise NotImplementedError()
+
+ test_indexedRecordsFromMatchExpression.todo = "Unimplemented"
+
+
+ def test_unIndexedRecordsFromMatchExpression(self):
+ """
+ L{DirectoryService.unIndexedRecordsFromMatchExpression} ...
+ """
+ raise NotImplementedError()
+
+ test_unIndexedRecordsFromMatchExpression.todo = "Unimplemented"
+
+
+ def test_recordsFromNonCompoundExpression(self):
+ """
+ L{DirectoryService.recordsFromNonCompoundExpression} ...
+ """
+ raise NotImplementedError()
+
+ test_recordsFromNonCompoundExpression.todo = "Unimplemented"
+
+
def _noop(self):
"""
Does nothing.
@@ -135,12 +173,11 @@
serviceClass = DirectoryService
directoryRecordClass = DirectoryRecord
+
def _noop(self):
"""
- Does nothing for this class.
+ Does nothing.
"""
- if self.__class__ is not DirectoryRecordTest:
- raise NotImplementedError("Subclasses should implement this test.")
test_members_group = _noop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/c6082ed3/attachment.html>
More information about the calendarserver-changes
mailing list