def setUp(self): self.observable = patterns.ObservableList() self.observer = patterns.SetDecorator(self.observable)
def setUp(self): self.observable = patterns.ObservableList() self.observer = patterns.SetDecorator(self.observable) self.observable.extend([1, 2, 3])
def testOriginalNotEmpty(self): observable = patterns.ObservableSet([1, 2, 3]) observer = patterns.SetDecorator(observable) self.assertEqual([1, 2, 3], observer)