kyu_8.set_alarm package

Submodules

kyu_8.set_alarm.set_alarm module

Test for -> L1: Set Alarm.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_8.set_alarm.set_alarm.set_alarm(employed: bool, vacation: bool) bool[source]

‘set_alarm’ function.

A function named setAlarm which receives two parameters. The first parameter, employed, is true whenever you are employed and the second parameter, vacation is true whenever you are on vacation.

Parameters:
  • employed – bool

  • vacation – bool

Returns:

bool

kyu_8.set_alarm.test_set_alarm module

Test for -> L1: Set Alarm.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_8.set_alarm.test_set_alarm.SetAlarmTestCase(methodName='runTest')[source]

Bases: TestCase

Testing set_alarm function.

_classSetupFailed = False
_class_cleanups = []
test_set_alarm = None
test_set_alarm_0(**kw)

Testing set_alarm function with various test inputs [with test_input=(True, True), expected=False, msg=’Fails when input is True, True’].

The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.

Examples: setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true :return:

test_set_alarm_1(**kw)

Testing set_alarm function with various test inputs [with test_input=(False, True), expected=False, msg=’Fails when input is False, True’].

The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.

Examples: setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true :return:

test_set_alarm_2(**kw)

Testing set_alarm function with various test inputs [with test_input=(False, False), expected=False, msg=’Fails when input is False, False’].

The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.

Examples: setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true :return:

test_set_alarm_3(**kw)

Testing set_alarm function with various test inputs [with test_input=(True, False), expected=True, msg=’Fails when input is True, False’].

The function should return true if you are employed and not on vacation (because these are the circumstances under which you need to set an alarm). It should return false otherwise.

Examples: setAlarm(true, true) -> false setAlarm(false, true) -> false setAlarm(false, false) -> false setAlarm(true, false) -> true :return:

Module contents

L1: Set Alarm.