@@ -2489,6 +2489,8 @@ def _test_tcap_map():
2489
2489
def _test_tcap_map_rt ():
2490
2490
# use a specific TCAP-MAP buffer for testing some more ASN.1 runtime features
2491
2491
# take care to not test for too-TCAP-MAP features, that could change in future versions
2492
+
2493
+ from pycrate_asn1dir import TCAP_MAP
2492
2494
#
2493
2495
M = GLOBAL .MOD ['TCAP-MAP-Messages' ]['TCAP-MAP-Message' ]
2494
2496
p = pkts_tcap_map [1 ]
@@ -2497,11 +2499,9 @@ def _test_tcap_map_rt():
2497
2499
assert ( M .get_internals ()['root' ] == ['unidirectional' , 'begin' , 'end' , 'continue' , 'abort' ] )
2498
2500
assert ( M .get_typeref () == M ._tr == GLOBAL .MOD ['TCAPMessages' ]['TCMessage' ] )
2499
2501
#
2500
- prot = M .get_proto (w_open = True , w_opt = True , w_enum = True , print_recurs = False , blacklist = set () )
2502
+ prot = M .get_proto (w_opt = True , w_enum = True )
2501
2503
assert ( len (prot [1 ]) == 5 and len (prot [1 ]['begin' ][1 ]) == 3 )
2502
- comp = M .get_complexity (w_open = False , w_opt = False , print_recurs = False , blacklist = set ())
2503
- assert ( comp == (23 , 7 , []) )
2504
- comp = M .get_complexity (w_open = True , w_opt = True , print_recurs = False , blacklist = set ())
2504
+ comp = M .get_complexity ()
2505
2505
assert ( comp [0 ] >= 20156 and comp [1 ] >= 19 and len (comp [2 ]) >= 20 )
2506
2506
#
2507
2507
M .convert_named_val ()
0 commit comments