#NEWLINE# def test_post_authorize( self ) : #NEWLINE# #INDENT# url = ( self . authorize_url + '&scope=foo' ) #NEWLINE# rv = self . client . post ( url , data = { #NEWLINE# #INDENT# 'confirm' : 'yes' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( 'invalid_scope' in url . location ) #NEWLINE# url = ( self . authorize_url + '&scope=email' ) #NEWLINE# rv = self . client . post ( url , data = { #NEWLINE# #INDENT# 'confirm' : 'yes' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( 'code' in rv . location )