@@ -438,8 +438,8 @@ def test_missing_name(self):
438
438
</{ data_type } >"""
439
439
440
440
cluster_xml = self .cluster_template .render (cluster_id = self .cluster_id ,
441
- cluster_name = self .cluster_name ,
442
- data_types = xml )
441
+ cluster_name = self .cluster_name ,
442
+ data_types = xml )
443
443
444
444
# Parse the XML
445
445
et = ElementTree .fromstring (cluster_xml )
@@ -448,7 +448,7 @@ def test_missing_name(self):
448
448
problems = parser .get_problems ()
449
449
asserts .assert_equal (len (problems ), 1 , "Should have one problem for missing name" )
450
450
asserts .assert_true ("with no id or name" in problems [0 ].problem ,
451
- f"Problem message doesn't match expected error for { data_type } " )
451
+ f"Problem message doesn't match expected error for { data_type } " )
452
452
except Exception as e :
453
453
self .print_step ("Error" , f"Exception when testing { data_type } : { e } " )
454
454
@@ -497,20 +497,20 @@ def test_optionalConform_tag_parsing(self):
497
497
<optionalConform/>
498
498
</field>
499
499
</struct>"""
500
-
500
+
501
501
cluster_xml = self .cluster_template .render (
502
- cluster_id = self .cluster_id ,
503
- cluster_name = self .cluster_name ,
502
+ cluster_id = self .cluster_id ,
503
+ cluster_name = self .cluster_name ,
504
504
data_types = struct_xml
505
505
)
506
-
506
+
507
507
# Parse the XML
508
508
et = ElementTree .fromstring (cluster_xml )
509
509
parser = ClusterParser (et , self .cluster_id , self .cluster_name )
510
510
cluster = parser .create_cluster ()
511
511
problems = parser .get_problems ()
512
512
asserts .assert_equal (len (problems ), 0 , "Expected no parsing problems" )
513
-
513
+
514
514
# Verify that optionalConform was properly detected
515
515
struct = cluster .structs ["OptionalConformStruct" ]
516
516
asserts .assert_false (struct .components ["1" ].is_optional , "MandatoryField should not be marked optional" )
0 commit comments