mirror of
https://github.com/django/django.git
synced 2025-07-06 18:59:13 +00:00
[soc2009/model-validation] Minor test tweak
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6fd54a9c0d
commit
481fb86e13
@ -26,8 +26,6 @@ def fix_os_paths(x):
|
||||
|
||||
|
||||
class TestFields(TestCase):
|
||||
# CharField ###################################################################
|
||||
|
||||
def assertRaisesErrorWithMessage(self, error, message, callable, *args, **kwargs):
|
||||
self.assertRaises(error, callable, *args, **kwargs)
|
||||
try:
|
||||
@ -35,6 +33,8 @@ class TestFields(TestCase):
|
||||
except error, e:
|
||||
self.assertEqual(message, str(e))
|
||||
|
||||
# CharField ###################################################################
|
||||
|
||||
def test_converted_0(self):
|
||||
f = CharField()
|
||||
self.assertEqual(u'1', f.clean(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user