def METHOD_NAME(self):
    if LXML_PRESENT:
        self.assertEqual(registry.lookup('html'), LXMLTreeBuilder)
        self.assertEqual(registry.lookup('xml'), LXMLTreeBuilderForXML)
    else:
        self.assertEqual(registry.lookup('xml'), None)
        if HTML5LIB_PRESENT:
            self.assertEqual(registry.lookup('html'), HTML5TreeBuilder)
        else:
            self.assertEqual(registry.lookup('html'), HTMLParserTreeBuilder)