#NEWLINE# def test_class_doc( self ) : #NEWLINE# #INDENT# 'Test if class docs are generated correctly.' #NEWLINE# dm = indenter . VTKDocMassager ( ) #NEWLINE# indent = indenter . Indent ( ) #NEWLINE# out = cStringIO . StringIO ( ) #NEWLINE# doc = 'vtkLODProperty, vtkXMLDataReader, vtk3DSImporter\nSetRepresentationToWireframe, Write3DPropsAsRasterImage' #NEWLINE# dm . write_class_doc ( doc , out , indent ) #NEWLINE# out . seek ( 0 ) #NEWLINE# ret = out . read ( ) #NEWLINE# correct = '    """\n    LODProperty, XMLDataReader, ThreeDSImporter\n    set_representation_to_wireframe, write3d_props_as_raster_image\n    """\n' #NEWLINE# self . assertEqual ( ret , correct ) #NEWLINE# out = cStringIO . StringIO ( ) #NEWLINE# doc = '' #NEWLINE# dm . write_class_doc ( doc , out , indent ) #NEWLINE# out . seek ( 0 ) #NEWLINE# ret = out . read ( ) #NEWLINE# self . assertEqual ( ret , '    """\n    \n    """\n' )