diff options
author | Adam Chainz <me@adamj.eu> | 2016-11-30 00:01:12 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-29 19:01:12 -0500 |
commit | 71609a5b903ace05a437eb3f89859e9d35a88203 (patch) | |
tree | 44509d6dbc586b9d0d79e820254b55e3df449189 /tests/utils_tests/test_functional.py | |
parent | 05d2c5a66dd72c26e5221855e08834a66c844399 (diff) | |
download | django-71609a5b903ace05a437eb3f89859e9d35a88203.tar.gz |
Fixed #27555 -- Removed django.utils.functional.lazy_property.
Diffstat (limited to 'tests/utils_tests/test_functional.py')
-rw-r--r-- | tests/utils_tests/test_functional.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py index 1413ac23b3..7a633620fc 100644 --- a/tests/utils_tests/test_functional.py +++ b/tests/utils_tests/test_functional.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals import unittest from django.utils import six -from django.utils.functional import cached_property, lazy, lazy_property +from django.utils.functional import cached_property, lazy class FunctionalTestCase(unittest.TestCase): @@ -38,25 +38,6 @@ class FunctionalTestCase(unittest.TestCase): t = lazy(lambda: Klazz(), Base)() self.assertEqual(t.method(), 'Klazz') - def test_lazy_property(self): - - class A(object): - - def _get_do(self): - raise NotImplementedError - - def _set_do(self, value): - raise NotImplementedError - do = lazy_property(_get_do, _set_do) - - class B(A): - def _get_do(self): - return "DO IT" - - with self.assertRaises(NotImplementedError): - A().do - self.assertEqual(B().do, 'DO IT') - def test_lazy_object_to_string(self): class Klazz(object): |