From b2db1b24c665bb6bc0957ff3b57ffd85814919d3 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Mon, 22 Mar 2010 13:22:24 +0000 Subject: [PATCH] Fixed #12764: Avoid exceeding psycopg1 limits in the views tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12832 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/views/tests/defaults.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/views/tests/defaults.py b/tests/regressiontests/views/tests/defaults.py index 0aefe481e89..bc5b223e560 100644 --- a/tests/regressiontests/views/tests/defaults.py +++ b/tests/regressiontests/views/tests/defaults.py @@ -31,7 +31,7 @@ class DefaultsTests(TestCase): self.assertEquals(response.status_code, 404) def test_shortcut_bad_pk(self): - short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '4242424242') + short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '42424242') response = self.client.get(short_url) self.assertEquals(response.status_code, 404) @@ -43,7 +43,7 @@ class DefaultsTests(TestCase): def test_bad_content_type(self): an_author = Author.objects.all()[0] - short_url = '/views/shortcut/%s/%s/' % (4242424242, an_author.pk) + short_url = '/views/shortcut/%s/%s/' % (42424242, an_author.pk) response = self.client.get(short_url) self.assertEquals(response.status_code, 404)