Skip to content

Commit 5be29cd

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/python_testing/TestSpecParsingDataType.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def test_invalid_struct_field(self):
266266
parser = ClusterParser(et, self.cluster_id, self.cluster_name)
267267
cluster = parser.create_cluster()
268268
problems = parser.get_problems()
269-
269+
270270
# Verify the valid field was parsed and the invalid one generated a problem
271271
asserts.assert_true("TestStruct" in cluster.structs, "TestStruct not found in parsed structs")
272272
struct = cluster.structs["TestStruct"]
@@ -384,15 +384,15 @@ def test_invalid_enum_item(self):
384384
parser = ClusterParser(et, self.cluster_id, self.cluster_name)
385385
cluster = parser.create_cluster()
386386
problems = parser.get_problems()
387-
387+
388388
# Verify the valid item was parsed and the invalid one generated a problem
389389
asserts.assert_true("TestEnum" in cluster.enums, "TestEnum not found in parsed enums")
390390
enum = cluster.enums["TestEnum"]
391391
asserts.assert_equal(len(enum.components), 1, "Should only have one valid item")
392392
asserts.assert_true("0" in enum.components, "Valid item not found in enum components")
393393
asserts.assert_equal(len(problems), 1, "Should have one problem for invalid item")
394394
asserts.assert_true("Struct field in TestEnum with no id or name" in problems[0].problem,
395-
"Problem message doesn't match expected error")
395+
"Problem message doesn't match expected error")
396396

397397
def test_invalid_bitmap_field(self):
398398
"""Test handling of a bitmap with an invalid bitfield (missing bit)"""
@@ -415,15 +415,15 @@ def test_invalid_bitmap_field(self):
415415
parser = ClusterParser(et, self.cluster_id, self.cluster_name)
416416
cluster = parser.create_cluster()
417417
problems = parser.get_problems()
418-
418+
419419
# Verify the valid field was parsed and the invalid one generated a problem
420420
asserts.assert_true("TestBitmap" in cluster.bitmaps, "TestBitmap not found in parsed bitmaps")
421421
bitmap = cluster.bitmaps["TestBitmap"]
422422
asserts.assert_equal(len(bitmap.components), 1, "Should only have one valid field")
423423
asserts.assert_true("0" in bitmap.components, "Valid bitfield not found in bitmap components")
424424
asserts.assert_equal(len(problems), 1, "Should have one problem for invalid bitfield")
425425
asserts.assert_true("Struct field in TestBitmap with no id or name" in problems[0].problem,
426-
"Problem message doesn't match expected error")
426+
"Problem message doesn't match expected error")
427427

428428
def test_missing_name(self):
429429
"""Test handling of a data type with missing name attribute"""

0 commit comments

Comments
 (0)