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 7 tests from
rsudp.test
:TEST['n_inventory'] TEST['c_data'] TEST['c_processing'] TEST['c_TERM'] TEST['c_ALARM'] TEST['c_RESET'] TEST['c_IMGPATH']
These tests represent inventory fetch, data packet reception, stream processing, and the reception of the four current message types:
TERM
,ALARM
,RESET
, andIMGPATH
.- 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
.