#NEWLINE# def test_stuff( self ) : #NEWLINE# #INDENT# '\n        L{makeRst} returns a generator that returns a bunch of lines of rest.\n        ' #NEWLINE# app = Klein ( ) #NEWLINE# @ app . route ( b'/g' , methods = [ b'PUT' ] ) #NEWLINE# @ user_documentation ( '\n            Does G-like stuff.\n\n            Like g, G and gg.\n            ' , header = 'g stuff' , section = 'section' ) #NEWLINE# def g( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# rest = list ( makeRst ( b'/prefix' , 'section' , app , None , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( rest , [ 'g stuff' , '-------' , '' , '' , '.. http:put:: /prefix/g' , '' , '   Does G-like stuff.' , '   ' , '   Like g, G and gg.' , '   ' , '' ] )