#NEWLINE# def test_parse_reference( self ) : #NEWLINE# #INDENT# lines = '\nREFERENCE   1  (bases 1 to 154478)\n  AUTHORS   Sato,S., Nakamura,Y., Kaneko,T., and Tabata,S.\n  TITLE     Complete structure of the chloroplast genome of\n            Arabidopsis thaliana\n  JOURNAL   DNA Res. 6 (5), 283-290 (1999)\n   PUBMED   10574454' . split ( '\n' ) #NEWLINE# exp = { #NEWLINE# #INDENT# 'AUTHORS' : 'Sato,S., Nakamura,Y., Kaneko,T., and Tabata,S.' , #NEWLINE# 'JOURNAL' : 'DNA Res. 6 (5), 283-290 (1999)' , #NEWLINE# 'PUBMED' : '10574454' , #NEWLINE# 'REFERENCE' : '1  (bases 1 to 154478)' , #NEWLINE# 'TITLE' : 'Complete structure of the chloroplast genome of Arabidopsis thaliana' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( _parse_reference ( exp ) , exp )