mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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:
parent
67df1a5002
commit
ec3ba39fdb
13 changed files with 31 additions and 30 deletions
|
@ -1,5 +1,6 @@
|
|||
from django.test import TestCase
|
||||
import unittest
|
||||
|
||||
import django.utils.copycompat as copy
|
||||
from django.utils.functional import SimpleLazyObject
|
||||
|
||||
class _ComplexObject(object):
|
||||
|
@ -23,7 +24,7 @@ class _ComplexObject(object):
|
|||
|
||||
complex_object = lambda: _ComplexObject("joe")
|
||||
|
||||
class TestUtilsSimpleLazyObject(TestCase):
|
||||
class TestUtilsSimpleLazyObject(unittest.TestCase):
|
||||
"""
|
||||
Tests for SimpleLazyObject
|
||||
"""
|
||||
|
@ -59,7 +60,6 @@ class TestUtilsSimpleLazyObject(TestCase):
|
|||
self.assertEqual(_ComplexObject, SimpleLazyObject(complex_object).__class__)
|
||||
|
||||
def test_deepcopy(self):
|
||||
import django.utils.copycompat as copy
|
||||
# Check that we *can* do deep copy, and that it returns the right
|
||||
# objects.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue