Skip to content

Commit 04c97a3

Browse files
restyled-commitsj-ororke
authored andcommitted
Restyled by autopep8
1 parent ce8688b commit 04c97a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/python_testing/TestSpecParsingDataType.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ def test_missing_name(self):
438438
</{data_type}>"""
439439

440440
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)
443443

444444
# Parse the XML
445445
et = ElementTree.fromstring(cluster_xml)
@@ -448,7 +448,7 @@ def test_missing_name(self):
448448
problems = parser.get_problems()
449449
asserts.assert_equal(len(problems), 1, "Should have one problem for missing name")
450450
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}")
452452
except Exception as e:
453453
self.print_step("Error", f"Exception when testing {data_type}: {e}")
454454

@@ -497,20 +497,20 @@ def test_optionalConform_tag_parsing(self):
497497
<optionalConform/>
498498
</field>
499499
</struct>"""
500-
500+
501501
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,
504504
data_types=struct_xml
505505
)
506-
506+
507507
# Parse the XML
508508
et = ElementTree.fromstring(cluster_xml)
509509
parser = ClusterParser(et, self.cluster_id, self.cluster_name)
510510
cluster = parser.create_cluster()
511511
problems = parser.get_problems()
512512
asserts.assert_equal(len(problems), 0, "Expected no parsing problems")
513-
513+
514514
# Verify that optionalConform was properly detected
515515
struct = cluster.structs["OptionalConformStruct"]
516516
asserts.assert_false(struct.components["1"].is_optional, "MandatoryField should not be marked optional")

0 commit comments

Comments
 (0)