예제 #1
0
 def testChangeTrackerIgnoresRemovalsFromOtherCollections(self):
     secondCollection = base.Collection()
     secondCollection.append(self.object)
     self.collection.append(self.object)
     secondCollection.remove(self.object)
     self.failUnless(self.tracker.added())
예제 #2
0
 def setUp(self):
     self.collection = base.Collection()
     self.tracker = base.ChangeTracker(self.collection)
     self.object = base.CompositeObject()
예제 #3
0
 def testChangeTrackerIgnoresAdditionsToOtherCollections(self):
     secondCollection = base.Collection()
     secondCollection.append(self.object)
     self.failIf(self.tracker.added())
예제 #4
0
 def setUp(self):
     self.collection = base.Collection()