'Ensure that URLFields validate urls properly.'

def test_url_validation(self):

    class Link(Document, ):
        url = URLField()
    link = Link()
    link.url = 'google'
    self.assertRaises(ValidationError, link.validate)
    link.url = 'http://www.google.com:8080'
    link.validate()
