'The I{type} renderer of L{FailureElement} renders the failure\'s
exception type.'

def test_failureElementType(self):

    element = FailureElement(self.failure, TagLoader(tags.span(render='type')))
    d = flattenString(None, element)
    if _PY3:
        exc = 'builtins.Exception'
    else:
        exc = 'exceptions.Exception'
    d.addCallback(self.assertEqual, (('<span>' + exc) + '</span>'))
    return d
