#NEWLINE# def test_list_all_by_collection( self ) : #NEWLINE# #INDENT# collection = modelfactories . CollectionFactory ( ) #NEWLINE# journal = modelfactories . JournalFactory . create ( ) #NEWLINE# journal . join ( collection , self . user ) #NEWLINE# modelfactories . IssueFactory . create ( journal = journal ) #NEWLINE# collection_name = collection . name #NEWLINE# response = self . app . get ( ( '/api/v2/issues/?collection=%s' % collection_name ) , extra_environ = self . extra_environ ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTrue ( ( 'objects' in response . content ) )