freezer.tests.unit.scheduler.test_scheduler_daemon module

class freezer.tests.unit.scheduler.test_scheduler_daemon.TestDaemon(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass()

Hook method for setting up class fixture before running tests in the class.

test_create()
test_daemon_start_preserves_sockets(mock_get_sockets, mock_get_filenos, mock_DaemonContext, mock_PidFile)
test_get_open_sockets(mock_fstat, mock_listdir, mock_exists)
test_handle_program_exit_calls_scheduler_stop()
test_handle_program_reload_calls_scheduler_reload()
test_is_process_running_eperm(mock_kill)
test_is_process_running_srch(mock_kill)
test_is_process_running_success(mock_kill)
test_pid_fname_in_tempdir(mock_expanduser, mock_gettempdir)
test_pid_not_exists(mock_isfile)
test_signal_map_handlers()
test_start(mock_DaemonContext, mock_PidFile, mock_is_process_running)
class freezer.tests.unit.scheduler.test_scheduler_daemon.TestGetFilenos(methodName='runTest')

Bases: TestCase

test_get_filenos_extended_attributes()
test_get_filenos_no_stream()
test_get_filenos_recursive()
test_get_filenos_stream_no_fileno()
test_get_filenos_with_valid_stream()
class freezer.tests.unit.scheduler.test_scheduler_daemon.TestNoDaemon(methodName='runTest')

Bases: TestCase

setUp(mock_signal)

Hook method for setting up the test fixture before exercising it.

test_create()
test_exit_handler()
test_has_status_method()
test_has_stop_method()
test_reload_handler()
test_start_exit_ok()