#NEWLINE# @ any_form_field . register ( forms . URLField ) #NEWLINE# def url_field_data( field , **kwargs ) : #NEWLINE# #INDENT# '\n    Return random value for URLField\n    \n    >>> result = any_form_field(forms.URLField())\n    >>> from django.core.validators import URLValidator\n    >>> import re\n    >>> re.match(URLValidator.regex, result) is not None\n    True\n    ' #NEWLINE# urls = kwargs . get ( 'choices' , [ 'http://news.yandex.ru/society.html' , 'http://video.google.com/?hl=en&tab=wv' , 'http://www.microsoft.com/en/us/default.aspx' , 'http://habrahabr.ru/company/opera/' , 'http://www.apple.com/support/hardware/' , 'http://localhost/' , 'http://72.14.221.99' , 'http://fr.wikipedia.org/wiki/France' ] ) #NEWLINE# return random . choice ( kwargs )