[CalendarServer-changes] [12512] twext/trunk/twext/who/ldap/test/test_service.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:19:12 PDT 2014


Revision: 12512
          http://trac.calendarserver.org//changeset/12512
Author:   wsanchez at apple.com
Date:     2014-01-31 13:26:45 -0800 (Fri, 31 Jan 2014)
Log Message:
-----------
Use constant for unknown record type

Modified Paths:
--------------
    twext/trunk/twext/who/ldap/test/test_service.py

Modified: twext/trunk/twext/who/ldap/test/test_service.py
===================================================================
--- twext/trunk/twext/who/ldap/test/test_service.py	2014-01-31 21:11:06 UTC (rev 12511)
+++ twext/trunk/twext/who/ldap/test/test_service.py	2014-01-31 21:26:45 UTC (rev 12512)
@@ -52,6 +52,7 @@
     DirectoryServiceRealmTestMixIn,
     DirectoryServiceQueryTestMixIn as BaseDirectoryServiceQueryTestMixIn,
     DirectoryServiceMutableTestMixIn as BaseDirectoryServiceMutableTestMixIn,
+    UnknownRecordType,
 )
 
 
@@ -123,7 +124,7 @@
 
         self.assertRaises(
             QueryNotSupportedError,
-            service.recordsWithRecordType, object()
+            service.recordsWithRecordType, UnknownRecordType.unknown
         )
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/8ad9a755/attachment.html>


More information about the calendarserver-changes mailing list