#NEWLINE# def test_correct_collection_list_for_usergroup( self ) : #NEWLINE# #INDENT# '\n        logged in user should see collections in belonging to the same group\n        as the user and not see collections from other groups\n        ' #NEWLINE# request = self . factory . get ( '/ui/collections/' ) #NEWLINE# request . user = self . user #NEWLINE# response = CollectionListView . as_view ( ) ( request ) #NEWLINE# collection_list = response . context_data [ 'collection_list' ] #NEWLINE# self . assertEqual ( 1 , len ( collection_list ) ) #NEWLINE# self . assertEqual ( self . collection1 , collection_list [ 0 ] ) #NEWLINE# self . assertEqual ( 1 , collection_list [ 0 ] . num_seedsets )