@@ -332,8 +332,8 @@ def test_parse_error_sequence_missing_type(self):
332
332
333
333
self .assertEqual (
334
334
str (cm .exception ),
335
- "Invalid ASN.1 syntax at line 1, column 43 : 'A DEFINITIONS ::= BEGIN "
336
- " A ::= SEQUENCE { >!<a } END': Expected Type." )
335
+ "Invalid ASN.1 syntax at line 1, column 45 : 'A DEFINITIONS ::= BEGIN "
336
+ " A ::= SEQUENCE { a >!<} END': Expected Type." )
337
337
338
338
def test_parse_error_sequence_missing_member_name (self ):
339
339
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -344,7 +344,7 @@ def test_parse_error_sequence_missing_member_name(self):
344
344
self .assertEqual (
345
345
str (cm .exception ),
346
346
"Invalid ASN.1 syntax at line 1, column 43: 'A DEFINITIONS ::= "
347
- "BEGIN A ::= SEQUENCE { >!<A } END': Expected Type ." )
347
+ "BEGIN A ::= SEQUENCE { >!<A } END': Expected '}' ." )
348
348
349
349
def test_parse_error_definitive_identifier (self ):
350
350
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -366,8 +366,8 @@ def test_parse_error_missing_union_member_beginning(self):
366
366
367
367
self .assertEqual (
368
368
str (cm .exception ),
369
- "Invalid ASN.1 syntax at line 1, column 39 : 'A DEFINITIONS ::= BEGIN "
370
- "B ::= INTEGER >!<( | SIZE (1))END': Expected END ." )
369
+ "Invalid ASN.1 syntax at line 1, column 40 : 'A DEFINITIONS ::= BEGIN "
370
+ "B ::= INTEGER ( >!<| SIZE (1))END': Expected one or more constraints ." )
371
371
372
372
def test_parse_error_missing_union_member_middle (self ):
373
373
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -377,8 +377,8 @@ def test_parse_error_missing_union_member_middle(self):
377
377
378
378
self .assertEqual (
379
379
str (cm .exception ),
380
- "Invalid ASN.1 syntax at line 1, column 39 : \' A DEFINITIONS "
381
- "::= BEGIN B ::= INTEGER >!< (SIZE (1) | | (0))END\' : Expected END ." )
380
+ "Invalid ASN.1 syntax at line 1, column 49 : \' A DEFINITIONS "
381
+ "::= BEGIN B ::= INTEGER (SIZE (1) >!< | | (0))END\' : Expected ')' ." )
382
382
383
383
def test_parse_error_missing_union_member_end (self ):
384
384
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -388,8 +388,8 @@ def test_parse_error_missing_union_member_end(self):
388
388
389
389
self .assertEqual (
390
390
str (cm .exception ),
391
- "Invalid ASN.1 syntax at line 1, column 39 : \' A DEFINITIONS "
392
- "::= BEGIN B ::= INTEGER >!< (SIZE (1) |)END\' : Expected END ." )
391
+ "Invalid ASN.1 syntax at line 1, column 49 : \' A DEFINITIONS "
392
+ "::= BEGIN B ::= INTEGER (SIZE (1) >!< |)END\' : Expected ')' ." )
393
393
394
394
def test_parse_error_size_constraint_missing_parentheses (self ):
395
395
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -463,7 +463,7 @@ def test_parse_error_late_extension_additions(self):
463
463
str (cm .exception ),
464
464
"Invalid ASN.1 syntax at line 1, column 63: \' A DEFINITIONS ::= "
465
465
"BEGIN Foo ::= SEQUENCE { a BOOLEAN, ..., ...>!<, [[ c BOOLEAN ]] "
466
- "} END\' : Expected Type ." )
466
+ "} END\' : Expected '}' ." )
467
467
468
468
def test_parse_error_too_many_extension_markers (self ):
469
469
with self .assertRaises (asn1tools .ParseError ) as cm :
@@ -487,7 +487,7 @@ def test_parse_error_too_many_extension_markers(self):
487
487
str (cm .exception ),
488
488
"Invalid ASN.1 syntax at line 1, column 108: \' A DEFINITIONS ::= "
489
489
"BEGIN Foo ::= SEQUENCE { a BOOLEAN, ..., [[ b BOOLEAN ]], [[ c "
490
- "BOOLEAN ]], ..., d BOOLEAN>!<, ... } END\' : Expected Type ." )
490
+ "BOOLEAN ]], ..., d BOOLEAN>!<, ... } END\' : Expected '}' ." )
491
491
492
492
def test_parse_error_missing_single_line_comment_end (self ):
493
493
with self .assertRaises (asn1tools .ParseError ) as cm :
0 commit comments