mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
ts_51_011: fix unittest for EF.ADN
The unittest for EF.ADN can run with _test_de_encode. However, the original test vectors seem to be from a card with a slightly larger record size, so they need a bit of re-alignment Related: OS#5714 Change-Id: I241792e66ee6167be6ddc076453344b6307d6265
This commit is contained in:
@@ -131,13 +131,13 @@ class ExtendedBcdAdapter(Adapter):
|
|||||||
|
|
||||||
# TS 51.011 Section 10.5.1
|
# TS 51.011 Section 10.5.1
|
||||||
class EF_ADN(LinFixedEF):
|
class EF_ADN(LinFixedEF):
|
||||||
_test_decode = [
|
_test_de_encode = [
|
||||||
( '42204841203120536963ffffffff06810628560810ffffffffffffff',
|
( '42204841203120536963FFFFFFFFFFFF06810628560810FFFFFFFFFFFFFF',
|
||||||
{ "alpha_id": "B HA 1 Sic", "len_of_bcd": 6, "ton_npi": { "ext": True, "type_of_number":
|
{ "alpha_id": "B HA 1 Sic", "len_of_bcd": 6, "ton_npi": { "ext": True, "type_of_number":
|
||||||
"unknown", "numbering_plan_id":
|
"unknown", "numbering_plan_id":
|
||||||
"isdn_e164" }, "dialing_nr":
|
"isdn_e164" }, "dialing_nr":
|
||||||
"6082658001", "cap_conf_id": 255, "ext1_record_id": 255 }),
|
"6082658001", "cap_conf_id": 255, "ext1_record_id": 255 }),
|
||||||
( '4B756E64656E626574726575756E67FFFFFF0791947112122721ffffffffffff',
|
( '4B756E64656E626574726575756E67FF0791947112122721ffffffffffff',
|
||||||
{"alpha_id": "Kundenbetreuung", "len_of_bcd": 7, "ton_npi": {"ext": True, "type_of_number":
|
{"alpha_id": "Kundenbetreuung", "len_of_bcd": 7, "ton_npi": {"ext": True, "type_of_number":
|
||||||
"international",
|
"international",
|
||||||
"numbering_plan_id": "isdn_e164"},
|
"numbering_plan_id": "isdn_e164"},
|
||||||
|
|||||||
Reference in New Issue
Block a user