[commit] r2375 - trunk/Tests/GPyUnit
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Oct 1 14:14:06 CDT 2013
Author: ksmyth
Date: Tue Oct 1 14:14:06 2013
New Revision: 2375
Log:
Test for bug that I mistakenly thought GME had
Modified:
trunk/Tests/GPyUnit/test_instances.py
Modified: trunk/Tests/GPyUnit/test_instances.py
==============================================================================
--- trunk/Tests/GPyUnit/test_instances.py Tue Oct 1 14:13:56 2013 (r2374)
+++ trunk/Tests/GPyUnit/test_instances.py Tue Oct 1 14:14:06 2013 (r2375)
@@ -94,4 +94,19 @@
self.assertEqual(asp.Referred.ID, attributes.ID)
self.project.CommitTransaction()
+ @dec_disable_early_binding
+ def test_DetachFromArcheType_RelIDs(self):
+ self.project = GPyUnit.util.parse_xme(self.connstr)
+ self.project.BeginTransactionInNewTerr()
+ aspects = self.project.RootFolder.GetObjectByPathDisp("/@Aspects")
+ allproxy = self.project.RootFolder.GetObjectByPathDisp("/@Aspects/@AllRef")
+ subtype = self.project.RootFolder.DeriveRootObject(aspects, False)
+ allrefNew = subtype.CreateChildObject(allproxy.MetaRole)
+ setMembership = subtype.GetObjectByPathDisp("@SetMembership")
+ self.assertEquals(0x8000001, setMembership.RelID)
+
+ subtype.DetachFromArcheType() # this changes RelIDs so there are no dups
+ self.assertEquals(list(range(1,50+1)), sorted([fco.RelID for fco in subtype.ChildFCOs]))
+ self.project.CommitTransaction()
+
#GPyUnit.util.MUGenerator(globals(), TestInstances)
More information about the gme-commit
mailing list