#NEWLINE# @ pytest . mark . parametrize ( ( 'input' , 'expected' ) , [ ( '/1/firefox/4.0/WINNT/en-US/firefox-help/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/WINNT/en-US/firefox-f1/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/WINNT/en-US/firefox-osxkey/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Darwin/en-US/firefox-help/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Darwin/en-US/firefox-f1/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Darwin/en-US/firefox-osxkey/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Linux/en-US/firefox-help/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Linux/en-US/firefox-f1/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) , ( '/1/firefox/4.0/Linux/en-US/firefox-osxkey/' , '/en-US/products/firefox?as=u&utm_source=inproduct' ) ] ) #NEWLINE# def test_browser_redirect_to_sumo( self , base_url , input , expected ) : #NEWLINE# #INDENT# expected_url = ( base_url + expected ) #NEWLINE# r = self . _check_redirect ( base_url , input ) #NEWLINE# assert ( expected_url == urllib . unquote ( expected . url ) ) #NEWLINE# assert ( requests . codes . ok == r . status_code )