Use generic function hexstr_to_Nbytearr to convert hex string to 3/5 Bytes array

Change-Id: I1165e4928d063667f0b4dfc3437c9278e7ec7450
This commit is contained in:
herlesupreeth
2020-09-18 15:32:20 +02:00
committed by laforge
parent f394853533
commit 45fa604834
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ class DecTestCase(unittest.TestCase):
"ffffff0002",
"ffffff0001",
]
self.assertEqual(utils.hexstr_to_fivebytearr(input_str), expected)
self.assertEqual(utils.hexstr_to_Nbytearr(input_str, 5), expected)
def testDecMCCfromPLMN(self):
self.assertEqual(utils.dec_mcc_from_plmn("92f501"), 295)