[Commits] (donn) Added unit test to SimpleQuery

commits at osafoundation.org commits at osafoundation.org
Tue Aug 31 12:45:28 PDT 2004


Commit by: donn
Modified files:
chandler/repository/query/tests/TestSimpleQueries.py 1.7 1.8

Log message:
Added unit test to SimpleQuery
-------------------------------------------
  * failing test is disabled
  * tests Out box logic with MailMessage present

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/repository/query/tests/TestSimpleQueries.py.diff?r1=text&tr1=1.7&r2=text&tr2=1.8

Index: chandler/repository/query/tests/TestSimpleQueries.py
diff -u chandler/repository/query/tests/TestSimpleQueries.py:1.7 chandler/repository/query/tests/TestSimpleQueries.py:1.8
--- chandler/repository/query/tests/TestSimpleQueries.py:1.7	Thu Aug 26 17:30:05 2004
+++ chandler/repository/query/tests/TestSimpleQueries.py	Tue Aug 31 12:45:26 2004
@@ -1,15 +1,27 @@
 
-__revision__  = "$Revision: 1.7 $"
-__date__      = "$Date: 2004/08/27 00:30:05 $"
+__revision__  = "$Revision: 1.8 $"
+__date__      = "$Date: 2004/08/31 19:45:26 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
 import os, unittest
 import repository.query.tests.QueryTestCase as QueryTestCase
 import tools.timing
+import osaf.contentmodel.mail.Mail as Mail
 
 class TestSimpleQueries(QueryTestCase.QueryTestCase):
 
+    """
+    def testOutBoxQueryWithMail(self):
+        # create an outbound Mail item
+        aMessage = Mail.MailMessage()
+        # now run the query
+        print "testing with a Mail item"
+        qString = u"for i in '//parcels/osaf/contentmodel/mail/MailMessageMixin' where contains(i.isInbound,True)"
+        results = self._executeQuery(qString)
+        self._checkQuery(lambda i: False, results)
+    """
+
     def testKindQuery(self):
         """ Test a simulation of kindQuery """
         results = self._executeQuery(u'for i in "//Schema/Core/Kind" where True')



More information about the Commits mailing list