diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-07-05 13:30:40 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-07-05 13:30:40 +0000 |
| commit | f662801023605ff6fe44416271e39839894e7962 (patch) | |
| tree | 01193ff4480b1b52b250cdcf2c33717a92b174b1 | |
| parent | ff0eff055ea7cd28ba2856b89189d03dbe71c397 (diff) | |
[soc2009/model-validation] Fixed test for CharField validation
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@11195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/model_fields/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py index 6d210b1ffb..d47344d644 100644 --- a/tests/regressiontests/model_fields/tests.py +++ b/tests/regressiontests/model_fields/tests.py @@ -163,7 +163,7 @@ class ValidationTest(django.test.TestCase): self.assertRaises(ValidationError, f.clean, "a", None) def test_charfield_with_choices_cleans_valid_choice(self): - f = models.CharField(choices=[('a','A'), ('b','B')]) + f = models.CharField(max_length=1, choices=[('a','A'), ('b','B')]) self.assertEqual('a', f.clean('a', None)) def test_charfield_with_choices_raises_error_on_invalid_choice(self): |
