def test_redirect():
 Client().get('/')
 redirect = shortcuts.redirect('home')
 assert (redirect['Location'] == '/en-US/firefox/')

def test_redirect ( ) : Client ( ) . get ( '/' ) redirect = shortcuts . redirect ( 'home' ) assert ( redirect [ 'Location' ] == '/en-US/firefox/' )
make sure django .