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