[CalendarServer-changes] [12324] twext/trunk/twext/who/ldap/test/test_util.py

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


Revision: 12324
          http://trac.calendarserver.org//changeset/12324
Author:   wsanchez at apple.com
Date:     2014-01-13 10:58:53 -0800 (Mon, 13 Jan 2014)
Log Message:
-----------
Test unknown expression type.

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

Modified: twext/trunk/twext/who/ldap/test/test_util.py
===================================================================
--- twext/trunk/twext/who/ldap/test/test_util.py	2014-01-13 02:18:31 UTC (rev 12323)
+++ twext/trunk/twext/who/ldap/test/test_util.py	2014-01-13 18:58:53 UTC (rev 12324)
@@ -20,6 +20,7 @@
 
 from twisted.trial import unittest
 
+from ...idirectory import QueryNotSupportedError
 from ...expression import (
     CompoundExpression, Operand, MatchExpression, MatchType, MatchFlags
 )
@@ -247,6 +248,10 @@
         """
         Unknown expression.
         """
-        raise NotImplementedError()
+        service = DirectoryService()
 
-    test_queryStringFromExpression_unknown.todo = "unimplemented"
+        self.assertRaises(
+            QueryNotSupportedError,
+            ldapQueryStringFromExpression,
+            object(), self.attrMap(service)
+        )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/e9a0f2f8/attachment.html>


More information about the calendarserver-changes mailing list