tests.test_hear_data_processing
Module Contents
Classes
A test suite that validates the multicast sender and receiver’s handling of empty data. |
|
A test suite that uses MagicMock to perform light testing of the default handler for HEAR. |
Data
API
- tests.test_hear_data_processing.__module__[source]
‘tests’
- class tests.test_hear_data_processing.RecvDataProcessingTestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuiteA test suite that validates the multicast sender and receiver’s handling of empty data.
Test cases: - Sending empty binary data. - Sending empty data followed by a stop command.
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_data_processing’
- __name__[source]
‘tests.test_hear_data_processing.RecvDataProcessingTestSuite’
- class tests.test_hear_data_processing.HearHandleNoneDataTestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuiteA test suite that uses MagicMock to perform light testing of the default handler for HEAR.
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_data_processing’
- __name__[source]
‘tests.test_hear_data_processing.HearHandleNoneDataTestSuite’
- test_handle_none_data() None[source][source]
Test that HearUDPHandler properly handles None data without raising exceptions.
This test verifies that: 1. The handler initializes correctly with None request data 2. The handle() method executes without errors 3. The handler properly processes the None data case