Exemplo n.º 1
0
 def test_running(self):
     interval = Interval()
     self.assertFalse(interval.running)
     interval.start()
     self.assertTrue(interval.running)
     interval.stop()
     self.assertFalse(interval.running)
Exemplo n.º 2
0
 def test_running(self):
     interval = Interval()
     self.assertFalse(interval.running)
     interval.start()
     self.assertTrue(interval.running)
     interval.stop()
     self.assertFalse(interval.running)
Exemplo n.º 3
0
 def test_stopped(self):
     interval = Interval()
     interval.start()
     self.assertFalse(interval.stopped)
     interval.stop()
     self.assertTrue(interval.stopped)
Exemplo n.º 4
0
 def test_stopped(self):
     interval = Interval()
     interval.start()
     self.assertFalse(interval.stopped)
     interval.stop()
     self.assertTrue(interval.stopped)