#NEWLINE# def test_missingDocumentFactory( self ) : #NEWLINE# #INDENT# '\n        L{Element.render} raises L{MissingDocumentFactory} if the C{docFactory}\n        attribute is C{None}.\n        ' #NEWLINE# element = Element ( ) #NEWLINE# err = self . assertRaises ( MissingDocumentFactory , element . render , None ) #NEWLINE# self . assertIdentical ( self . element , element )