From efb832744466548ea6f86fa027ffe702baa0d9a0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 10 Sep 2011 17:38:58 +0000 Subject: Fixed #16808, removed some dead code from teh ORM. Thanks to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16782 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/db_typecasts/tests.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/regressiontests/db_typecasts/tests.py b/tests/regressiontests/db_typecasts/tests.py index 1d3bbfa101..cb5984f303 100644 --- a/tests/regressiontests/db_typecasts/tests.py +++ b/tests/regressiontests/db_typecasts/tests.py @@ -1,7 +1,10 @@ # Unit tests for typecast functions in django.db.backends.util +import datetime + from django.db.backends import util as typecasts -import datetime, unittest +from django.utils import unittest + TEST_CASES = { 'typecast_date': ( @@ -42,13 +45,6 @@ TEST_CASES = { ('2010-10-12 15:29:22.0632021', datetime.datetime(2010, 10, 12, 15, 29, 22, 63202)), ('2010-10-12 15:29:22.0632029', datetime.datetime(2010, 10, 12, 15, 29, 22, 63202)), ), - 'typecast_boolean': ( - (None, None), - ('', False), - ('t', True), - ('f', False), - ('x', False), - ), } class DBTypeCasts(unittest.TestCase): -- cgit v1.3