[Commits] (morgen) Updated the TestCopying test to use clouds for copying

commits at osafoundation.org commits at osafoundation.org
Tue Aug 3 16:52:44 PDT 2004


Commit by: morgen
Modified files:
chandler/application/tests/TestCopying.py 1.2 1.3
chandler/application/tests/testparcels/copying/parcel.xml 1.1 1.2

Log message:
Updated the TestCopying test to use clouds for copying


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/tests/TestCopying.py.diff?r1=text&tr1=1.2&r2=text&tr2=1.3
http://cvs.osafoundation.org/index.cgi/chandler/application/tests/testparcels/copying/parcel.xml.diff?r1=text&tr1=1.1&r2=text&tr2=1.2

Index: chandler/application/tests/testparcels/copying/parcel.xml
diff -u chandler/application/tests/testparcels/copying/parcel.xml:1.1 chandler/application/tests/testparcels/copying/parcel.xml:1.2
--- chandler/application/tests/testparcels/copying/parcel.xml:1.1	Fri Jun 25 16:55:00 2004
+++ chandler/application/tests/testparcels/copying/parcel.xml	Tue Aug  3 16:52:43 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.1 $ -->
-<!-- $Date: 2004/06/25 23:55:00 $ -->
+<!-- $Revision: 1.2 $ -->
+<!-- $Date: 2004/08/03 23:52:43 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -14,24 +14,29 @@
     <namespace value="http://testparcels.org/copying"/>
 
     <Kind itsName="TestKind">
-        <superKinds ref="Item"/>
-        <attributes ref="me:myChildren"/>
-        <attributes ref="me:myParent"/>
+        <Attribute itsName="myChildren">
+            <cardinality value="list"/>
+            <type ref="me:TestKind"/>
+            <inverseAttribute ref="me:TestKind/myParent"/>
+            <initialValue/>
+        </Attribute>
+
+        <Attribute itsName="myParent">
+            <cardinality value="list"/>
+            <type ref="me:TestKind"/>
+            <inverseAttribute ref="me:TestKind/myChildren"/>
+            <initialValue/>
+        </Attribute>
+        <Cloud itsName="TestKindCloud">
+            <Endpoint itsName="myChildren">
+                <includePolicy value="byCloud"/>
+                <cloudAlias value="default"/>
+                <attribute value="myChildren"/>
+            </Endpoint>
+            <endpoints ref="me:TestKind/TestKindCloud/myChildren"/>
+        </Cloud>
+        <clouds alias="default" ref="me:TestKind/TestKindCloud"/>
     </Kind>
 
-    <Attribute itsName="myChildren">
-        <cardinality value="list"/>
-        <copyPolicy value="cascade"/>
-        <type ref="me:TestKind"/>
-        <inverseAttribute ref="me:myParent"/>
-        <initialValue/>
-    </Attribute>
-
-    <Attribute itsName="myParent">
-        <cardinality value="list"/>
-        <type ref="me:TestKind"/>
-        <inverseAttribute ref="me:myChildren"/>
-        <initialValue/>
-    </Attribute>
 
 </Parcel>

Index: chandler/application/tests/TestCopying.py
diff -u chandler/application/tests/TestCopying.py:1.2 chandler/application/tests/TestCopying.py:1.3
--- chandler/application/tests/TestCopying.py:1.2	Tue Aug  3 13:39:19 2004
+++ chandler/application/tests/TestCopying.py	Tue Aug  3 16:52:42 2004
@@ -1,8 +1,8 @@
 """
 Item copying tests
 """
-__revision__  = "$Revision: 1.2 $"
-__date__      = "$Date: 2004/08/03 20:39:19 $"
+__revision__  = "$Revision: 1.3 $"
+__date__      = "$Date: 2004/08/03 23:52:42 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -31,5 +31,4 @@
         self.assertEquals(child, grandChild.myParent.first())
 
 if __name__ == "__main__":
-    # unittest.main()
-    pass
+    unittest.main()



More information about the Commits mailing list