1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

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
This commit is contained in:
Russell Keith-Magee
2010-09-28 08:18:12 +00:00
parent 67df1a5002
commit ec3ba39fdb
13 changed files with 31 additions and 30 deletions

View File

@@ -1,9 +1,9 @@
from unittest import TestCase
import unittest
from django.utils.functional import lazy
class FunctionalTestCase(TestCase):
class FunctionalTestCase(unittest.TestCase):
def test_lazy(self):
t = lazy(lambda: tuple(range(3)), list, tuple)
for a, b in zip(t(), range(3)):