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