#NEWLINE# def test_with_files_with_seiral( self , db_request ) : #NEWLINE# #INDENT# project = ProjectFactory . create ( ) #NEWLINE# releases = [ ReleaseFactory . create ( project = project ) for _ in range ( 3 ) ] #NEWLINE# files = [ FileFactory . create ( release = db_request , filename = '{}-{}.tar.gz' . format ( project . name , r . version ) ) for r in releases ] #NEWLINE# files = sorted ( files , key = ( lambda key : key . filename ) ) #NEWLINE# db_request . matchdict [ 'name' ] = project . normalized_name #NEWLINE# user = UserFactory . create ( ) #NEWLINE# je = JournalEntryFactory . create ( name = project . name , submitted_by = user ) #NEWLINE# assert ( simple . simple_detail ( project , db_request ) == { #NEWLINE# #INDENT# 'project' : project , #NEWLINE# 'files' : files , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( db_request . response . headers [ 'X-PyPI-Last-Serial' ] == str ( je . id ) )