#NEWLINE# def test_api_pub_status_data_with_multiple_collection( self ) : #NEWLINE# #INDENT# col1 = modelfactories . CollectionFactory ( ) #NEWLINE# col2 = modelfactories . CollectionFactory ( ) #NEWLINE# journal = modelfactories . JournalFactory . create ( ) #NEWLINE# journal . join ( col1 , self . user ) #NEWLINE# journal . join ( col2 , self . user ) #NEWLINE# journal . change_status ( col1 , 'current' , 'The journal passed on SciELO evaluation' , journal . user ) #NEWLINE# response = self . app . get ( ( '/api/v2/journals/%s/' % journal . pk ) , extra_environ = self . extra_environ ) . json #NEWLINE# self . assertEqual ( response [ 'pub_status' ] , { col . name : journal . membership_info ( collection = col , attribute = 'status' ) for col in journal . collections . all ( ) } )