summaryrefslogtreecommitdiff
path: root/tests/regressiontests/utils/dateformat.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-09-28 08:18:12 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-09-28 08:18:12 +0000
commitec3ba39fdb9dd6b82fb790a7babff5d2c4630ad5 (patch)
tree67120e9fa8d60ddabae5be4c8b9b86d1948067cd /tests/regressiontests/utils/dateformat.py
parent67df1a5002f4cb136403f124d3db52d6fc805eb8 (diff)
A few test optimizations; using native unittest where no Django-specific TestCase features are required.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/utils/dateformat.py')
-rw-r--r--tests/regressiontests/utils/dateformat.py7
1 files changed, 4 insertions, 3 deletions
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)