Exemple #1
0
 def test_if_false_alarm(self):
     FalseAlarm = set_alarm.alarm(False, False)
     self.assertEqual(FalseAlarm, False)
Exemple #2
0
 def test_if_true_alarm(self):
     TrueAlarm = set_alarm.alarm(True, True)
     self.assertEqual(TrueAlarm, False)
Exemple #3
0
 def test_if_still_false(self):
     StillFalse = set_alarm.alarm(False, True)
     self.assertEqual(StillFalse, False)
Exemple #4
0
 def test_if_very_true(self):
     VeryTrue = set_alarm.alarm(True, False)
     self.assertEqual(VeryTrue, True)
Exemple #5
0
 def __call__(self):
     alarm()