1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

[1.1.X] Made a few Python 2.3 compatibility test fixes.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey
2010-03-08 04:37:45 +00:00
parent 1adc88f4b4
commit 9b2ac2ad2d
3 changed files with 15 additions and 15 deletions

View File

@@ -35,10 +35,10 @@ class BasicFieldTests(django.test.TestCase):
choices = [(0, 0), (1, 1)]
model_field = models.Field(choices=choices)
form_field = model_field.formfield(show_hidden_initial=True)
self.assertTrue(form_field.show_hidden_initial)
self.failUnless(form_field.show_hidden_initial)
form_field = model_field.formfield(show_hidden_initial=False)
self.assertFalse(form_field.show_hidden_initial)
self.failIf(form_field.show_hidden_initial)
class DecimalFieldTests(django.test.TestCase):
def test_to_python(self):
@@ -168,7 +168,7 @@ class TypeCoercionTests(django.test.TestCase):
"""
def test_lookup_integer_in_charfield(self):
self.assertEquals(Post.objects.filter(title=9).count(), 0)
def test_lookup_integer_in_textfield(self):
self.assertEquals(Post.objects.filter(body=24).count(), 0)