diff options
author | Harald Welte <laforge@osmocom.org> | 2023-12-21 22:02:34 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2024-01-04 20:13:06 +0100 |
commit | e13403b2065f53c648929861132b7b77fef6e6e7 (patch) | |
tree | 4273bb73de1fd9d0700a8bdab1b6a2f7a31997bd /tests | |
parent | 9a48aea263af1f9777b418c3fda154c29253f5e8 (diff) |
ts_31_102: Start to use construct for EF.SUCI_Calc_Info
We cannot fully switch to construct for all of it easily due to
the priority value and the ordering/sorting by priority implemented
in the hand-coded version. But we can at least migrate the
encode/decode of the hnet_pubkey_list via construct.
Change-Id: I4ad5ea57bab37c2dc218e7752d538aa4cdc36ee3
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 062b614..ea1964b 100755 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -136,12 +136,12 @@ class DecTestCase(unittest.TestCase): def testDecodeSuciCalcInfo(self): suci_calc_info = EF_SUCI_Calc_Info() - decoded = suci_calc_info._decode_hex(self.testfile_suci_calc_info) + decoded = suci_calc_info.decode_hex(self.testfile_suci_calc_info) self.assertDictEqual(self.decoded_testfile_suci, decoded) def testEncodeSuciCalcInfo(self): suci_calc_info = EF_SUCI_Calc_Info() - encoded = suci_calc_info._encode_hex(self.decoded_testfile_suci) + encoded = suci_calc_info.encode_hex(self.decoded_testfile_suci) self.assertEqual(encoded.lower(), self.testfile_suci_calc_info.lower()) def testEnc_msisdn(self): |