tests.test_basic

Module Contents

Classes

BasicTestSuite

A test suite containing basic test cases for the multicast module.

Data

__module__

API

tests.test_basic.__module__[source]

‘tests’

class tests.test_basic.BasicTestSuite(methodName='runTest')[source][source]

Bases: context.BasicUsageTestSuite

A test suite containing basic test cases for the multicast module.

This class inherits from context.BasicUsageTestSuite and provides a set of unit tests to verify the fundamental functionality and error handling of the multicast module.

Test Methods:

  • test_absolute_truth_and_meaning: An insanity test that always passes.

  • test_Does_Pass_WHEN_Meta_Test: Verifies basic assertion methods.

  • test_Does_Pass_WHEN_Using_Import_From_Syntax: Tests importing the multicast module.

  • test_Error_WHEN_the_help_command_is_called: Checks if the –help option raises an exception.

  • test_IsNone_WHEN_given_corner_case_input: Tests handling of invalid inputs.

  • test_None_WHEN_Nothing: A placeholder for additional tests.

  • test_Skip_UNLESS_linux_only: A test that only runs on Linux platforms.

  • test_Skip_UNLESS_darwin_only: A test that only runs on macOS platforms.

Note: Some tests are conditionally skipped based on the operating system. The test methods use various assertion techniques to verify expected behaviors.

This test suite is designed to catch basic issues and ensure the core functionality of the multicast module works as expected across different platforms.

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

test_absolute_truth_and_meaning()[source][source]

Insanitty Test 1: Because it only matters if we’re not mad as hatters.

test_Does_Pass_WHEN_Meta_Test()[source][source]

Insanity Test 2: for unittests assertion.

test_Does_Pass_WHEN_Using_Import_From_Syntax()[source][source]

Test case 0: importing multicast.

test_Error_WHEN_the_help_command_is_called()[source][source]

Test case 1: the –help options should error when called.

test_IsNone_WHEN_given_corner_case_input()[source][source]

Example Test case for bad input directly into function.

test_None_WHEN_Nothing()[source][source]

Try adding new tests.

test_Skip_UNLESS_linux_only()[source][source]

Linux is the test.

test_Skip_UNLESS_darwin_only()[source][source]

MacOS is the test.