#NEWLINE# def test_journal_filter_for_nonexisting_values_skips_filtering( 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=5' , 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' ] ) , 0 )