ait.core.test.test_tlm module¶
-
class
ait.core.test.test_tlm.
TestFieldDefinition
¶ Bases:
object
-
setUp
()¶
-
tearDown
()¶
-
test_field_definition
()¶
-
test_fld_defn_notitle
()¶
-
test_yaml_test1
= '/tmp/test_test1.yaml'¶
-
yaml_docs_test1
= '- !Packet\n name: OCO3_1553_EHS\n fields:\n - !Field\n name: field_1\n title: Field 1\n type: MSB_U16\n'¶
-
-
class
ait.core.test.test_tlm.
TestTlmConfig
¶ Bases:
object
-
setUp
()¶
-
tearDown
()¶
-
test_yaml_fld_includes
()¶
-
test_yaml_fld_includes_nested
()¶
-
test_yaml_fld_includes_nestedx2
()¶
-
test_yaml_fld_includesx2
()¶
-
test_yaml_pkt_includes
()¶
-
test_pkl_main
= '/tmp/test_main.pkl'¶
-
test_yaml_inc1
= '/tmp/test_inc1.yaml'¶
-
test_yaml_inc2
= '/tmp/test_inc2.yaml'¶
-
test_yaml_main
= '/tmp/test_main.yaml'¶
-
yaml_docs_inc1
= '- !Field\n name: field_A\n type: U8\n- !Field\n name: field_B\n type: U8\n'¶
-
yaml_docs_inc2
= '- !Field\n name: field_Y\n type: U8\n- !Field\n name: field_Z\n type: U8\n'¶
-
-
class
ait.core.test.test_tlm.
TestTlmDictWriter
¶ Bases:
object
-
test_writeToCSV
()¶
-
test_outpath
= '/tmp'¶
-
test_yaml_file
= '/tmp/test.yaml'¶
-
-
ait.core.test.test_tlm.
testAliases
()¶ # This test will use the following TLM dictionary definitions:
!Packet name: P fields:
!Field name: A aliases:
icd: ALIAS_A subsys: ALIAS_B
type: MSB_U16[3]
-
ait.core.test.test_tlm.
testArray
()¶ # This test will use the following TLM dictionary definitions:
!Packet name: P fields:
- !Field name: A type: MSB_U16[3]
-
ait.core.test.test_tlm.
testMask
()¶ # This test will use the following TLM dictionary definitions. # The mask 0x0180 singles out the two bits on either MSB_U16 # word: # # 0b00000001 0b10000000
!Packet name: P fields:
- !Field name: M type: MSB_U16 mask: 0x0180
-
ait.core.test.test_tlm.
testSingleItemList
()¶ # this test will test 1-item lists - !Packet
name: P fields:
- !Field name: foo bytes: 0 type: U8
- !Field name: bar bytes: [1] type: U8
- !Field name: baz bytes: [9,10] type: MSB_U16