Beispiel #1
0
def setUp(module):
    invariants.instrument_invariants(Inventory,
                                     inventory.check_invariants,
                                     inventory.check_invariants)
Beispiel #2
0
 def setUp(self):
     incr = lambda obj: setattr(obj, 'counter', obj.counter + 1)
     invariants.instrument_invariants(Dummy, incr, incr)