mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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:
		| @@ -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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user