Loads boundaries from XML >>> conf.boundaries = [] >>> loadBoundaries() >>> len(conf.boundaries) > 0 True
()
| 77 | conf.tests.append(test) |
| 78 | |
| 79 | def loadBoundaries(): |
| 80 | """ |
| 81 | Loads boundaries from XML |
| 82 | |
| 83 | >>> conf.boundaries = [] |
| 84 | >>> loadBoundaries() |
| 85 | >>> len(conf.boundaries) > 0 |
| 86 | True |
| 87 | """ |
| 88 | |
| 89 | try: |
| 90 | doc = et.parse(paths.BOUNDARIES_XML) |
| 91 | except Exception as ex: |
| 92 | errMsg = "something appears to be wrong with " |
| 93 | errMsg += "the file '%s' ('%s'). Please make " % (paths.BOUNDARIES_XML, getSafeExString(ex)) |
| 94 | errMsg += "sure that you haven't made any changes to it" |
| 95 | raise SqlmapInstallationException(errMsg) |
| 96 | |
| 97 | root = doc.getroot() |
| 98 | parseXmlNode(root) |
| 99 | |
| 100 | def loadPayloads(): |
| 101 | """ |
no test coverage detected
searching dependent graphs…