rsudp.c_testing (test consumer)

class rsudp.c_testing.Testing(q)

New in version 0.4.3.

This is the test consumer thread. It operates just like a normal consumer, but its only function is to run tests for data processing and message passing.

For a diagram of TestData’s position in the data hierarchy, see Data flow during testing.

Currently it has the power to run seven tests from rsudp.test:

TEST['n_inventory']
TEST['x_processing']
TEST['x_TERM']
TEST['x_ALARM']
TEST['x_RESET']
TEST['x_IMGPATH']
TEST['c_img']

These tests represent inventory fetch, data packet reception, stream processing, and the reception of the four current message types: TERM, ALARM, RESET, and IMGPATH.

Parameters:q (queue.Queue) – queue of data and messages sent by rsudp.c_consumer.Consumer
run()

Start the testing thread and run until self.alive == False.


Back to top ↑