Exemplo n.º 1
0
 def testAbortIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._abort()
     self.failUnless(target.abort_called)
     # _abort removes the TM from the registry
     self.failIf(registry.contains(target))
Exemplo n.º 2
0
 def testFinishIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._finish()
     self.failUnless(target.finish_called)
     # _finish removes the TM from the registry
     self.failIf(registry.contains(target))
Exemplo n.º 3
0
 def testAbortIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._abort()
     self.failUnless(target.abort_called)
     # _abort removes the TM from the registry
     self.failIf(registry.contains(target))
Exemplo n.º 4
0
 def testFinishIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._finish()
     self.failUnless(target.finish_called)
     # _finish removes the TM from the registry
     self.failIf(registry.contains(target))
Exemplo n.º 5
0
 def testBeginIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._begin()
     self.failUnless(target.begin_called)
Exemplo n.º 6
0
 def testBeginIsForwarded(self):
     target = Target()
     registry.register(target)
     tm = registry.get(target)
     tm._begin()
     self.failUnless(target.begin_called)