#NEWLINE# def test_get_authorize( self ) : #NEWLINE# #INDENT# rv = self . client . get ( '/oauth/authorize' ) #NEWLINE# assert ( 'client_id' in rv . location ) #NEWLINE# rv = self . client . get ( '/oauth/authorize?client_id=no' ) #NEWLINE# assert ( 'client_id' in rv . location ) #NEWLINE# url = ( '/oauth/authorize?client_id=%s' % self . oauth_client . client_id ) #NEWLINE# rv = self . client . get ( url ) #NEWLINE# assert ( 'error' in rv . location ) #NEWLINE# rv = self . client . get ( self . authorize_url ) #NEWLINE# assert ( b'confirm' in rv . data )