tests.test_hear_data_processing

Module Contents

Classes

RecvDataProcessingTestSuite

A test suite that validates the multicast sender and receiver’s handling of empty data.

HearHandleNoneDataTestSuite

A test suite that uses MagicMock to perform light testing of the default handler for HEAR.

Data

__module__

API

tests.test_hear_data_processing.__module__[source]

‘tests’

class tests.test_hear_data_processing.RecvDataProcessingTestSuite(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

A 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’

test_multicast_sender_with_no_data() None[source][source]

Tests the multicast sender and receiver with Empty binary data.

test_multicast_sender_with_no_data_before_follow_by_stop() None[source][source]

Tests the multicast sender and receiver with Empty binary data, followed by a stop.

class tests.test_hear_data_processing.HearHandleNoneDataTestSuite(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

A 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

test_handle_with_invalid_utf8_data() None[source][source]

Test that HearUDPHandler silently ignores invalid UTF-8 data.

This test verifies that: 1. The handler continues processing when receiving invalid UTF-8 data 2. No exception is raised 3. The handler silently ignores the decoding error