(self, href, parse="xml", encoding=None)
| 1997 | class XIncludeTest(unittest.TestCase): |
| 1998 | |
| 1999 | def xinclude_loader(self, href, parse="xml", encoding=None): |
| 2000 | try: |
| 2001 | data = XINCLUDE[href] |
| 2002 | except KeyError: |
| 2003 | raise OSError("resource not found") |
| 2004 | if parse == "xml": |
| 2005 | data = ET.XML(data) |
| 2006 | return data |
| 2007 | |
| 2008 | def none_loader(self, href, parser, encoding=None): |
| 2009 | return None |
no outgoing calls
no test coverage detected