def test_parsing(self): file_contents = [ 5, # active access class 0x00, 0x09 # VID ] config = DllConfigFile.parse(ConstBitStream(bytes=file_contents)) self.assertEqual(config.active_access_class, 5) self.assertEqual(config.vid, 9)
def test_parsing(self): file_contents = [ 5, # active access class 0x00, 0x00, # RFU 0x01, # LQ filter 0x02, # NF CTRL 0x03, # RX NF Method Parameter 0x04, # TX NF Method Parameter ] config = DllConfigFile.parse(ConstBitStream(bytes=file_contents)) self.assertEqual(config.active_access_class, 5) self.assertEqual(config.lq_filter, 1) self.assertEqual(config.nf_ctrl, 2) self.assertEqual(config.rx_nf_method_parameter, 3) self.assertEqual(config.tx_nf_method_parameter, 4)