Unicode fix reverted but can have custom validator
MongoEngine/mongoengine#136
This commit is contained in:
parent
6f0a6df4f6
commit
e6d796832e
4 changed files with 5 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import with_statement
|
||||
import datetime
|
||||
import os
|
||||
|
|
@ -199,9 +200,6 @@ 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.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue