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