Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #12764: Avoid exceeding psycopg1 limits in the views te…

…sts.

r12832 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c2267602cb253868232d1ef49f3d1ab822f7b639 1 parent 740c974
Karen Tracey authored March 22, 2010
4  tests/regressiontests/views/tests/defaults.py
@@ -31,7 +31,7 @@ def test_wrong_type_pk(self):
31 31
         self.assertEquals(response.status_code, 404)
32 32
 
33 33
     def test_shortcut_bad_pk(self):
34  
-        short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '4242424242')
  34
+        short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, '42424242')
35 35
         response = self.client.get(short_url)
36 36
         self.assertEquals(response.status_code, 404)
37 37
 
@@ -43,7 +43,7 @@ def test_nonint_content_type(self):
43 43
 
44 44
     def test_bad_content_type(self):
45 45
         an_author = Author.objects.all()[0]
46  
-        short_url = '/views/shortcut/%s/%s/' % (4242424242, an_author.pk)
  46
+        short_url = '/views/shortcut/%s/%s/' % (42424242, an_author.pk)
47 47
         response = self.client.get(short_url)
48 48
         self.assertEquals(response.status_code, 404)
49 49
 

0 notes on commit c226760

Please sign in to comment.
Something went wrong with that request. Please try again.