| Conditions | 2 | 
| Total Lines | 11 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import pytest  | 
            ||
| 9 | @pytest.mark.parametrize("file_path, result", [ | 
            ||
| 10 | (PATH_TO_ARF, True),  | 
            ||
| 11 | (PATH_TO_XCCDF, False),  | 
            ||
| 12 | (PATH_TO_EMPTY_XML_FILE, False),  | 
            ||
| 13 | ])  | 
            ||
| 14 | def test_validation(file_path, result):  | 
            ||
| 15 | xml_data = None  | 
            ||
| 16 | with open(file_path) as xml_report:  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 17 | xml_data = xml_report.read().encode()  | 
            ||
| 18 | parser = SCAPResultsParser(xml_data)  | 
            ||
| 19 | assert parser.validate(parser.arf_schemas_path) == result  | 
            ||
| 20 |