#NEWLINE# @ pytest . mark . parametrize ( 'path' , [ 'source/f/foo/foo-1.0.tar.gz' , 'source/f/foo/foo-1.0.tar.gz.asc' ] ) #NEWLINE# def test_doesnt_find_nonexistent_file( self , db_request , path ) : #NEWLINE# #INDENT# db_request . matchdict [ 'path' ] = path #NEWLINE# resp = file_redirect ( db_request ) #NEWLINE# assert isinstance ( resp , HTTPNotFound )