tests.test_hear_server_activate
Module Contents
Classes
Test suite for verifying multicast server activation functionality. |
|
Data
API
- tests.test_hear_server_activate.__module__[source]
‘tests’
- class tests.test_hear_server_activate.McastServerActivateTestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuiteTest suite for verifying multicast server activation functionality.
This test suite focuses on the proper initialization and activation of the multicast server, including socket setup and cleanup procedures.
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_server_activate’
- __name__[source]
‘tests.test_hear_server_activate.McastServerActivateTestSuite’
- class tests.test_hear_server_activate.HearServerInitTestSuite(methodName='runTest')[source][source]
Bases:
context.BasicUsageTestSuite- test_initialization_with_valid_address()[source][source]
Test multicast server initialization with a valid address.
Verifies that: 1. The server instance is of the correct type (McastServer). 2. The server instance is also recognized as a UDPServer. 3. Cleanup is performed correctly after initialization.
- test_initialization_with_logger_name()[source][source]
Test multicast server initialization with a specific logger name.
Verifies that: 1. The logger is properly initialized. 2. The logger’s name ends with the expected multicast address. 3. Cleanup is performed correctly after initialization.
- test_initialization_without_address()[source][source]
Test multicast server initialization without a valid address.
Verifies that: 1. The logger is initialized with the default name when server_address is None. 2. The logger is initialized with the default name when server_address is an empty tuple. 3. Cleanup is performed correctly after initialization.