#NEWLINE# def test_read_args( self ) : #NEWLINE# #INDENT# doc = 'Does a thing.\n\n  This module does something.\n\n  Args:\n    one: First description\n    two: Second\n         description\n' #NEWLINE# doc = doc . strip ( ) #NEWLINE# expected = [ 'one: First description' , 'two: Second description' ] #NEWLINE# self . assertEqual ( list ( read_args ( ( doc + '\n' ) ) ) , expected ) #NEWLINE# self . assertEqual ( list ( read_args ( doc ) ) , expected ) #NEWLINE# self . assertEqual ( list ( read_args ( ( doc + '\n  Returns:\n' ) ) ) , expected )