#NEWLINE# def test_method_doc( self ) : #NEWLINE# #INDENT# 'Test if method docs are generated correctly.' #NEWLINE# dm = indenter . VTKDocMassager ( ) #NEWLINE# indent = indenter . Indent ( ) #NEWLINE# out = cStringIO . StringIO ( ) #NEWLINE# doc = 'V.GetOutput(int) -> vtkStructuredPoints\nC++: vtkStructuredPoints *GetOutput (int idx);\nV.GetOutput() -> vtkStructuredPoints\nC++: vtkStructuredPoints *GetOutput ();\n\nvtkLODProperty, vtkXMLDataReader, vtk3DSImporter\nSetRepresentationToWireframe, Write3DPropsAsRasterImage' #NEWLINE# dm . write_method_doc ( doc , out , indent ) #NEWLINE# out . seek ( 0 ) #NEWLINE# ret = out . read ( ) #NEWLINE# correct = '    """\n    V.get_output(int) -> StructuredPoints\n    V.get_output() -> StructuredPoints\n\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 = 'V.GetOutput(int) -> vtkStructuredPoints\nC++: vtkStructuredPoints *GetOutput (int idx);\nV.GetOutput() -> vtkStructuredPoints\nC++: vtkStructuredPoints *GetOutput ();\n\n' #NEWLINE# dm . write_method_doc ( doc , out , indent ) #NEWLINE# out . seek ( 0 ) #NEWLINE# ret = out . read ( ) #NEWLINE# correct = '    """\n    V.get_output(int) -> StructuredPoints\n    V.get_output() -> StructuredPoints\n    """\n' #NEWLINE# self . assertEqual ( ret , correct )