[Commits] (lisa) Add cloud testing for mail item cloud which may demonstrate problems with clouds + mixins

commits at osafoundation.org commits at osafoundation.org
Wed Jul 28 12:33:01 PDT 2004


Commit by: lisa
Modified files:
chandler/parcels/osaf/contentmodel/tests/TestMail.py 1.10 1.11

Log message:
Add cloud testing for mail item cloud which may demonstrate problems with clouds + mixins

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/tests/TestMail.py.diff?r1=text&tr1=1.10&r2=text&tr2=1.11

Index: chandler/parcels/osaf/contentmodel/tests/TestMail.py
diff -u chandler/parcels/osaf/contentmodel/tests/TestMail.py:1.10 chandler/parcels/osaf/contentmodel/tests/TestMail.py:1.11
--- chandler/parcels/osaf/contentmodel/tests/TestMail.py:1.10	Mon Jun 21 17:51:55 2004
+++ chandler/parcels/osaf/contentmodel/tests/TestMail.py	Wed Jul 28 12:33:00 2004
@@ -2,8 +2,8 @@
 Unit tests for mail
 """
 
-__revision__  = "$Revision: 1.10 $"
-__date__      = "$Date: 2004/06/22 00:51:55 $"
+__revision__  = "$Revision: 1.11 $"
+__date__      = "$Date: 2004/07/28 19:33:00 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -60,6 +60,8 @@
         # Literal properties
         mailMessageItem.subject = "Hello"
         mailMessageItem.spamScore = 5
+        # Item Properties
+        mailMessageItem.replyAddress = emailAddressItem
 
         _verifyMailMessage(mailMessageItem)
 
@@ -69,7 +71,12 @@
         
         mailMessageItem = contentItemParent.getItemChild("mailMessageItem")
         _verifyMailMessage(mailMessageItem)
-        
+
+        cloud = self.manager.lookup("http://osafoundation.org/parcels/osaf/contentmodel/mail",
+           "MailMessageMixin/Cloud")
+        items = cloud.getItems(mailMessageItem)
+        self.assertEqual(len(items), 1)
+
 
 if __name__ == "__main__":
     unittest.main()



More information about the Commits mailing list