Updated URLField

handle unicode and custom validator (MongoEngine/mongoengine#136)
This commit is contained in:
Ross Lawley
2012-10-01 13:59:15 +00:00
parent e8604d100e
commit 7a877a00d5
4 changed files with 30 additions and 16 deletions

View File

@@ -199,6 +199,9 @@ class FieldTest(unittest.TestCase):
link.url = 'http://www.google.com:8080'
link.validate()
link.url = u'http://президент.рф'
self.assertTrue(link.validate())
def test_int_validation(self):
"""Ensure that invalid values cannot be assigned to int fields.
"""