From efa27fc86cff473c5ca5c0d48bcd264c99d9fd47 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Tue, 28 Sep 2010 08:29:30 +0000 Subject: [1.2.X] A few test optimizations; using native unittest where no Django-specific TestCase features are required. Backport of r13935 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13943 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/utils/dateformat.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/regressiontests/utils/dateformat.py') diff --git a/tests/regressiontests/utils/dateformat.py b/tests/regressiontests/utils/dateformat.py index b80010f8d8..d83e3e191c 100644 --- a/tests/regressiontests/utils/dateformat.py +++ b/tests/regressiontests/utils/dateformat.py @@ -1,10 +1,11 @@ -import os -from unittest import TestCase from datetime import datetime, date +import os +import unittest + from django.utils.dateformat import format from django.utils.tzinfo import FixedOffset, LocalTimezone -class DateFormatTests(TestCase): +class DateFormatTests(unittest.TestCase): def test_date(self): d = date(2009, 5, 16) self.assertEquals(date.fromtimestamp(int(format(d, 'U'))), d) -- cgit v1.3