tests.test_hear_keyboard_interrupt

Module Contents

Classes

TestHearKeyboardInterrupt

Test suite for verifying keyboard interrupt (SIGINT) handling.

Data

__module__

API

tests.test_hear_keyboard_interrupt.__module__[source]

‘tests’

class tests.test_hear_keyboard_interrupt.TestHearKeyboardInterrupt(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

Test suite for verifying keyboard interrupt (SIGINT) handling.

This suite ensures that the multicast service properly handles SIGINT signals by cleaning up resources and exiting gracefully with the expected status code (130).

Initialization

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

__module__[source]

‘tests.test_hear_keyboard_interrupt’

STARTUP_DELAY_SECONDS[source]

1

PROCESS_TIMEOUT_SECONDS[source]

5

EXPECTED_SIGINT_EXIT_CODE[source]

130

INVALID_ARGS_EXIT_CODE[source]

2

test_hear_keyboard_interrupt()[source][source]

Tests the special hear and stop test