[CalendarServer-changes] [10785] CalendarServer/trunk/twext/who/test/test_aggregate.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 21 17:35:55 PST 2013


Revision: 10785
          http://trac.calendarserver.org//changeset/10785
Author:   wsanchez at apple.com
Date:     2013-02-21 17:35:55 -0800 (Thu, 21 Feb 2013)
Log Message:
-----------
Add base tests

Modified Paths:
--------------
    CalendarServer/trunk/twext/who/test/test_aggregate.py

Modified: CalendarServer/trunk/twext/who/test/test_aggregate.py
===================================================================
--- CalendarServer/trunk/twext/who/test/test_aggregate.py	2013-02-22 01:35:34 UTC (rev 10784)
+++ CalendarServer/trunk/twext/who/test/test_aggregate.py	2013-02-22 01:35:55 UTC (rev 10785)
@@ -23,8 +23,8 @@
 from twext.who.idirectory import IDirectoryService
 from twext.who.aggregate import DirectoryService
 
-from twext.who.test import test_directory
-from twext.who.test.test_xml import xmlService
+from twext.who.test import test_xml
+from twext.who.test.test_xml import QueryMixIn, xmlService
 
 
 
@@ -43,13 +43,18 @@
             for s in services
         ))
 
-        return DirectoryService("xyzzy", services)
+        class TestService(DirectoryService, QueryMixIn):
+            pass
 
+        return TestService("xyzzy", services)
 
+
     def xmlService(self, xmlData=None):
         return xmlService(self.mktemp(), xmlData)
 
 
 
-class DirectoryServiceTest(BaseTest, test_directory.DirectoryServiceTest):
-    pass
+class DirectoryServiceTest(BaseTest, test_xml.DirectoryServiceBaseTest):
+    def test_repr(self):
+        service = self.service()
+        self.assertEquals(repr(service), "<TestService 'xyzzy'>")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130221/1f5830a3/attachment.html>


More information about the calendarserver-changes mailing list