@@ -600,8 +600,8 @@ def test_complex_constraints_parsing(self):
600
600
asserts .assert_true ("maxCountAttribute" in max_count_field .constraints , "maxCountAttribute missing" )
601
601
asserts .assert_equal (max_count_field .constraints .get ("maxCountAttribute" ), "MaxItems" , "Attribute reference incorrect" )
602
602
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 """
605
605
# First, find a cluster with enums to test
606
606
enum_found = False
607
607
struct_found = False
@@ -648,8 +648,9 @@ def test_real_clusters_data_types(self):
648
648
logging .info ("Successfully found and tested a bitmap" )
649
649
650
650
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
653
654
access_control_id = uint (Clusters .AccessControl .id )
654
655
if access_control_id not in self .xml_clusters :
655
656
self .skipTest ("Access Control cluster not found in parsed XML" )
@@ -673,7 +674,6 @@ def test_detailed_check_xml_datatype(self):
673
674
asserts .assert_true (len (privilege_enum .components ) >= 4 , "Should have at least 4 enum values" )
674
675
675
676
# 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
677
677
view_found = operate_found = manage_found = admin_found = False
678
678
679
679
for component_id , component in privilege_enum .components .items ():
@@ -717,7 +717,7 @@ def test_spec_data_type_files(self):
717
717
"Master should have at least as many structs as 1.4.1" )
718
718
719
719
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"""
721
721
multi_bit_bitmaps = []
722
722
723
723
# Look through all clusters for bitmaps that might have multi-bit fields
@@ -820,7 +820,7 @@ def test_xml_bitmap_data_types(self):
820
820
asserts .assert_true (hasattr (first_component , 'conformance' ), "Component missing 'conformance' attribute" )
821
821
822
822
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"""
824
824
825
825
# Statistics to track coverage
826
826
clusters_examined = 0
0 commit comments