#NEWLINE# def test_string_in_source( self ) : #NEWLINE# #INDENT# source_code = '\n' . join ( [ '"""' , 'Docstring' , '"""' , '"string in source"' , 'a = 1' ] ) #NEWLINE# ( docstring , source ) = extract_docstring_from_source ( source ) #NEWLINE# self . assertEqual ( docstring , '\nDocstring\n' ) #NEWLINE# self . assertEqual ( source , '\n' . join ( [ '"string in source"' , 'a = 1' ] ) )