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