From bce7de96477086f98f8cde8aef41a15e6e17b8af Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Mon, 3 Sep 2007 23:14:51 +0000 Subject: [PATCH] Removed some duplication in the Django `TestCase` methods by introducing a `to_list` function for putting a value into a list if it's not already one. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6041 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/testcases.py | 57 ++++++++++--------- .../test_client_regress/models.py | 4 +- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/django/test/testcases.py b/django/test/testcases.py index 400d66cfabe..fd08d45ee32 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -10,6 +10,18 @@ from django.test.client import Client normalize_long_ints = lambda s: re.sub(r'(?