Beispiel #1
0
def test_aborting_flow():
    aborting = Aborting(5)
    for i in range(5):
        assert aborting() is False
    assert aborting() is True
Beispiel #2
0
 def test_aborting_flow(self):
     aborting = Aborting(5)
     for i in range(5):
         self.assertEqual(aborting(), False)
     self.assertEqual(aborting(), True)