cdma_ruim: Fix unit tests and actually enable them

As pySim.cdma_ruim was not imported by test_files.py, the unit tests
were apparently never executed and hence didn't pass.  Let's fix both
of those problems.

Change-Id: Icdf4621eb68d05a4948ae9efeb81a007d48e1bb7
This commit is contained in:
Harald Welte 2023-07-11 21:03:54 +02:00
parent 659d7c11ca
commit f9e2df1296
2 changed files with 4 additions and 3 deletions

View File

@ -91,7 +91,7 @@ class EF_SPN(TransparentEF):
_test_de_encode = [ _test_de_encode = [
( "010801536b796c696e6b204e57ffffffffffffffffffffffffffffffffffffffffffff", ( "010801536b796c696e6b204e57ffffffffffffffffffffffffffffffffffffffffffff",
{ 'rfu0' : 0, 'show_in_hsa' : True, 'rfu2' : 0, { 'rfu1' : 0, 'show_in_hsa' : True, 'rfu2' : 0,
'char_encoding' : 8, 'lang_ind' : 1, 'spn' : 'Skylink NW' } ), 'char_encoding' : 8, 'lang_ind' : 1, 'spn' : 'Skylink NW' } ),
] ]
@ -133,9 +133,9 @@ class EF_AD(TransparentEF):
# Byte 1: Display Condition # Byte 1: Display Condition
'ms_operation_mode'/Enum(Byte, self.OP_MODE), 'ms_operation_mode'/Enum(Byte, self.OP_MODE),
# Bytes 2-3: Additional information # Bytes 2-3: Additional information
'additional_info'/Bytes(2), 'additional_info'/HexAdapter(Bytes(2)),
# Bytes 4..: RFU # Bytes 4..: RFU
'rfu'/GreedyBytesRFU, 'rfu'/HexAdapter(GreedyBytesRFU),
) )

View File

@ -29,6 +29,7 @@ import pySim.ts_31_103
import pySim.ts_51_011 import pySim.ts_51_011
import pySim.sysmocom_sja2 import pySim.sysmocom_sja2
import pySim.gsm_r import pySim.gsm_r
import pySim.cdma_ruim
def get_qualified_name(c): def get_qualified_name(c):
"""return the qualified (by module) name of a class.""" """return the qualified (by module) name of a class."""