#NEWLINE# def test_export_detail_seedset( self ) : #NEWLINE# #INDENT# export = Export . objects . create ( user = self . user , seed_set = self . seedset , export_type = 'flickr_user' , export_format = 'csv' , status = Export . SUCCESS ) #NEWLINE# self . _write_test_file ( export ) #NEWLINE# request = self . factory . get ( reverse ( 'export_detail' , args = [ export . pk ] ) ) #NEWLINE# request . user = self . user #NEWLINE# response = ExportDetailView . as_view ( ) ( export , pk = export . pk ) #NEWLINE# self . assertEqual ( self . collection , response . context_data [ 'collection' ] ) #NEWLINE# self . assertEqual ( self . seedset , response . context_data [ 'seedset' ] ) #NEWLINE# self . assertEqual ( [ ( 'test.csv' , 4 ) ] , response . context_data [ 'fileinfos' ] )