diff options
| author | Preston Holmes <preston@ptone.com> | 2013-03-06 16:09:36 -0800 |
|---|---|---|
| committer | Preston Holmes <preston@ptone.com> | 2013-03-06 16:14:46 -0800 |
| commit | 876fc3912881e15eda2b02c3b4933af313d0a498 (patch) | |
| tree | 094a19ed0d2e7a513dfa362893d7c84c07a609ee /tests/utils_tests | |
| parent | 0ea5bf88dddd7fbdef7fe8d00162c9753565f5c0 (diff) | |
PEP8 cleanup of functional.py
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/simplelazyobject.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/utils_tests/simplelazyobject.py b/tests/utils_tests/simplelazyobject.py index dd52857c03..2bc6799372 100644 --- a/tests/utils_tests/simplelazyobject.py +++ b/tests/utils_tests/simplelazyobject.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals import copy import pickle -from django.test.utils import str_prefix from django.utils import six from django.utils.unittest import TestCase from django.utils.functional import SimpleLazyObject, empty @@ -67,7 +66,7 @@ class TestUtilsSimpleLazyObject(TestCase): self.assertEqual(empty, x._wrapped) # Second, for an evaluated SimpleLazyObject - name = x.name # evaluate + name = x.name # evaluate self.assertTrue(isinstance(x._wrapped, _ComplexObject)) # __repr__ contains __repr__ of wrapped object self.assertEqual("<SimpleLazyObject: %r>" % x._wrapped, repr(x)) @@ -97,14 +96,14 @@ class TestUtilsSimpleLazyObject(TestCase): self.assertEqual(s2, complex_object()) # Second, for an evaluated SimpleLazyObject - name = s.name # evaluate + name = s.name # evaluate self.assertIsNot(s._wrapped, empty) s3 = copy.deepcopy(s) self.assertEqual(s3, complex_object()) - def test_none(self): i = [0] + def f(): i[0] += 1 return None |
