Skip to content

Commit cc9665b

Browse files
committed
Updating TestSpecParsingDataType module:
- Updating some verbiage on comments as needed
1 parent f7eec35 commit cc9665b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/python_testing/TestSpecParsingDataType.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ def test_complex_constraints_parsing(self):
600600
asserts.assert_true("maxCountAttribute" in max_count_field.constraints, "maxCountAttribute missing")
601601
asserts.assert_equal(max_count_field.constraints.get("maxCountAttribute"), "MaxItems", "Attribute reference incorrect")
602602

603-
def test_real_clusters_data_types(self):
604-
"""Test data types from real clusters in the XML specification"""
603+
def test_XML_clusters_data_types(self):
604+
"""Test data types from clusters in the 1.4.1 cluster spec XML files"""
605605
# First, find a cluster with enums to test
606606
enum_found = False
607607
struct_found = False
@@ -648,8 +648,9 @@ def test_real_clusters_data_types(self):
648648
logging.info("Successfully found and tested a bitmap")
649649

650650
def test_detailed_check_xml_datatype(self):
651-
"""Test a specific real data type in detail to ensure all properties are correctly parsed"""
652-
# Test a specific, known enum from the Access Control cluster
651+
"""Test a specific cluster XML's data type in detail to ensure all properties are correctly parsed"""
652+
653+
# Test a specific, known enum from the Access Control cluster, just as an example
653654
access_control_id = uint(Clusters.AccessControl.id)
654655
if access_control_id not in self.xml_clusters:
655656
self.skipTest("Access Control cluster not found in parsed XML")
@@ -673,7 +674,6 @@ def test_detailed_check_xml_datatype(self):
673674
asserts.assert_true(len(privilege_enum.components) >= 4, "Should have at least 4 enum values")
674675

675676
# Verify that we have the expected components (view, operate, manage, administer privileges)
676-
# Note: Exact component IDs may vary, so we check by name pattern
677677
view_found = operate_found = manage_found = admin_found = False
678678

679679
for component_id, component in privilege_enum.components.items():
@@ -717,7 +717,7 @@ def test_spec_data_type_files(self):
717717
"Master should have at least as many structs as 1.4.1")
718718

719719
def test_find_complex_bitmaps(self):
720-
"""Find and test bitmaps with multi-bit fields in the real data model"""
720+
"""Find and test bitmaps with multi-bit fields in the data model"""
721721
multi_bit_bitmaps = []
722722

723723
# Look through all clusters for bitmaps that might have multi-bit fields
@@ -820,7 +820,7 @@ def test_xml_bitmap_data_types(self):
820820
asserts.assert_true(hasattr(first_component, 'conformance'), "Component missing 'conformance' attribute")
821821

822822
def test_xml_datatype_component_fields(self):
823-
"""Test the additional fields in XmlDataTypeComponent using real XML files"""
823+
"""Test the additional fields in XmlDataTypeComponent using 1.4.1 cluster spec XML files"""
824824

825825
# Statistics to track coverage
826826
clusters_examined = 0

0 commit comments

Comments
 (0)