Exemple #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())
Exemple #2
0
 def setUp(self):
     self.collection = base.Collection()
     self.tracker = base.ChangeTracker(self.collection)
     self.object = base.CompositeObject()
Exemple #3
0
 def testChangeTrackerIgnoresAdditionsToOtherCollections(self):
     secondCollection = base.Collection()
     secondCollection.append(self.object)
     self.failIf(self.tracker.added())
Exemple #4
0
 def setUp(self):
     self.collection = base.Collection()