Ejemplo n.º 1
0
 def test_NotImplementedError(self):
     s = StoppableInterface()
     with self.assertRaises(NotImplementedError):
         s.stop()
     with self.assertRaises(NotImplementedError):
         s.run()
Ejemplo n.º 2
0
 def test_NotImplementedError(self):
     s = StoppableInterface()
     with self.assertRaises(NotImplementedError):
         s.stop()
     with self.assertRaises(NotImplementedError):
         s.run()
Ejemplo n.º 3
0
 def __init__(self):
     StoppableInterface.__init__(self)
     import conveyor.event
     self.callback = conveyor.event.Callback()
Ejemplo n.º 4
0
 def __init__(self):
     StoppableInterface.__init__(self)
     import conveyor.event
     self.callback = conveyor.event.Callback()