@@ -17,19 +17,19 @@ def test_parse_file_with_no_vuln_has_no_findings(self):
1717 self .parse_file_with_no_vuln_has_no_findings ()
1818
1919 def test_parse_file_with_multiple_ports_for_same_qid (self ):
20- with (get_unit_tests_scans_path ("qualys" ) / "test_qualys.xml" ).open (encoding = "utf-8" ) as testfile :
20+ with (get_unit_tests_scans_path ("qualys" ) / "test_qualys.xml" ).open (encoding = "utf-8" ) as testfile :
2121 parser = QualysParser ()
22- findings = parser .get_findings (testfile ,Test ())
22+ findings = parser .get_findings (testfile , Test ())
2323
24- self .assertEqual (len (findings ),2 , "Should have 2 findings for different ports" )
24+ self .assertEqual (len (findings ), 2 , "Should have 2 findings for different ports" )
2525 ports = [self .get_unsaved_locations (f )[0 ].port for f in findings ]
26- self .assertIn (80 ,ports )
27- self .assertIn (443 ,ports )
26+ self .assertIn (80 , ports )
27+ self .assertIn (443 , ports )
2828
29- self .assertEqual (findings [0 ].title ,findings [1 ].title )
29+ self .assertEqual (findings [0 ].title , findings [1 ].title )
3030 self .assertNotEqual (
3131 self .get_unsaved_locations (findings [0 ])[0 ].port ,
32- self .get_unsaved_locations (findings [1 ])[0 ].port
32+ self .get_unsaved_locations (findings [1 ])[0 ].port ,
3333 )
3434
3535 def parse_file_with_no_vuln_has_no_findings (self ):
0 commit comments