#NEWLINE# def test_with_blueprint_absolute_scheme( self ) : #NEWLINE# #INDENT# bp = Blueprint ( 'foo' , __name__ , url_prefix = '/foo' ) #NEWLINE# bp . add_url_rule ( '/<foo>' , 'foobar' , view_func = ( lambda x : x ) ) #NEWLINE# self . app . register_blueprint ( bp ) #NEWLINE# field = fields . Url ( absolute = True , scheme = 'https' ) #NEWLINE# obj = Mock ( foo = 42 ) #NEWLINE# with self . app . test_request_context ( '/foo/foo' , base_url = 'http://localhost' ) : #NEWLINE# #INDENT# assert_equal ( 'https://localhost/foo/42' , field . output ( 'foo' , self ) )