mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user