(self, href, parse="xml", encoding=None)
| 2045 | class XIncludeTest(unittest.TestCase): |
| 2046 | |
| 2047 | def xinclude_loader(self, href, parse="xml", encoding=None): |
| 2048 | try: |
| 2049 | data = XINCLUDE[href] |
| 2050 | except KeyError: |
| 2051 | raise OSError("resource not found") |
| 2052 | if parse == "xml": |
| 2053 | data = ET.XML(data) |
| 2054 | return data |
| 2055 | |
| 2056 | def none_loader(self, href, parser, encoding=None): |
| 2057 | return None |
no outgoing calls
no test coverage detected