#NEWLINE# def test_login_url_with_querystring( self ) : #NEWLINE# #INDENT# login_url = '/login/?pretty=1' #NEWLINE# login_required_url = self . get_login_required_url ( login_url ) #NEWLINE# querystring = QueryDict ( 'pretty=1' , mutable = True ) #NEWLINE# querystring [ 'next' ] = '/login_required/' #NEWLINE# self . assertEqual ( login_required_url , ( 'http://testserver/login/?%s' % querystring . urlencode ( '/' ) ) )