test_simpleTransmitter

test_simpleTransmitter.checkDefault()[source]

Validation Test Description

  1. Whether the simpleTransmitter provides the right output message (baudRate) while on;

  2. Whether the simpleTransmitter provides the right output message (baudRate) while off.

Parameters:

show_plots – Not used; no plots to be shown.

Returns:

test_simpleTransmitter.storage_status(names, bits)[source]

Build a storage status with the given partition names and sizes in bits.

test_simpleTransmitter.test_disconnected_storage(tx, disconnected, expected_name, expected_rate)[source]

A disconnected reader only stops transmission when it is the selected input.

test_simpleTransmitter.test_reinitialize_transmitter(tx, active)[source]

Restart the packet and its clock at the reset epoch, including after an active downlink.

test_simpleTransmitter.test_restore_same_storage_reader(tx, observe_disconnect)[source]

Restoring the same source restarts the packet only if an update observed the disconnect.

test_simpleTransmitter.test_simpleTransmitterAll(show_plots, function)[source]

Module Unit Test

test_simpleTransmitter.test_switch_to_empty_storage(tx)[source]

A written storage unit with no partitions must not inherit the previous partition.

test_simpleTransmitter.test_switch_to_written_storage(tx, connection)[source]

Adding a storage input or observing a different source starts a new packet.

test_simpleTransmitter.test_transmitter_waits_for_storage(tx)[source]

Keep idle output zero and account for only the active steps of the first packet.

test_simpleTransmitter.tx(request)[source]

Configure a transmitter that needs three one-second steps per packet.