'Ensure unicode URLs are validated properly.'

def test_unicode_url_validation(self):

    class Link(Document, ):
        url = URLField()
    link = Link()
    link.url = u'http://\u043f\u0440\u0438\u0432\u0435\u0442.com'
    try:
        link.validate()
        self.assertTrue(False)
    except ValidationError as e:
        self.assertEqual(unicode(e), u"ValidationError    (Link:None)    (Invalid    URL:    http://\u043f\u0440\u0438\u0432\u0435\u0442.com:    ['url'])")
