#NEWLINE# def test_absolute( self ) : #NEWLINE# #INDENT# self . app . add_url_rule ( '/<foo>' , 'foobar' , view_func = ( lambda x : x ) ) #NEWLINE# field = fields . Url ( 'foobar' , absolute = True ) #NEWLINE# obj = Mock ( foo = 42 ) #NEWLINE# with self . app . test_request_context ( '/' ) : #NEWLINE# #INDENT# assert_equal ( 'http://localhost/42' , field . output ( 'foo' , field ) )