test_mappingInstrument

test_mappingInstrument.mappingInstrumentTestFunction()[source]

Test method

test_mappingInstrument.test_mappingInstrument()[source]

This test checks that both the name of the data and the baudRate are correctly set in the mapping instrument module.

In this test, two accessMsgs are instantiated to test the module. In the first accessMsg, hasAccess = 1, meaning that the point is accessible. This point is named ‘1.’ In the second accessMsg, hasAccess = 0, meaning that the point is not accessible. The point is named ‘data2’ to test longer dataNames. The mappingInstrument should output a baudRate of 1 for point one, and a baudRate of 0 for point two. The dataNames in the output message are also checked.