#NEWLINE# @ pytest . mark . parametrize ( 'setup' , [ True , False ] ) #NEWLINE# def test_merges_slash_by_default( self , app , client , setup ) : #NEWLINE# #INDENT# configure_app ( app , overrides = None , setup = setup ) #NEWLINE# res = client . get ( '/articles/' ) #NEWLINE# assert ( res . status_code == 200 ) #NEWLINE# res = client . get ( '/articles//' ) #NEWLINE# assert ( res . status_code == 301 ) #NEWLINE# res = res . follow ( ) #NEWLINE# assert ( res . request . path_qs == '/articles/' )