def testCreateWithInitialContent(self): collection = patterns.CompositeList([self.composite]) self.assertEqual([self.composite], collection)
def setUp(self): self.composite = patterns.ObservableComposite() self.composite2 = patterns.ObservableComposite() self.collection = patterns.CompositeList()