#NEWLINE# def test_journal_filter( self ) : #NEWLINE# #INDENT# prs = [ ] #NEWLINE# for pr in range ( 5 ) : #NEWLINE# #INDENT# prs . append ( modelfactories . AheadPressReleaseFactory . create ( ) ) #NEWLINE# #UNINDENT# response = self . app . get ( ( '/api/v2/apressreleases/?journal_pid=%s' % prs [ 0 ] . journal . scielo_pid ) , extra_environ = self . extra_environ ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'objects' in response . content ) ) #NEWLINE# self . assertEqual ( len ( json . loads ( response . content ) [ 'objects' ] ) , 1 )