mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
parent
4bb70cbcc6
commit
321e94fa41
185 changed files with 1216 additions and 1528 deletions
|
@ -14,8 +14,7 @@ class FunctionalTestCase(unittest.TestCase):
|
|||
self.assertEqual(a, b)
|
||||
|
||||
def test_lazy_base_class(self):
|
||||
"""Test that lazy also finds base class methods in the proxy object"""
|
||||
|
||||
"""lazy also finds base class methods in the proxy object"""
|
||||
class Base(object):
|
||||
def base_method(self):
|
||||
pass
|
||||
|
@ -27,8 +26,7 @@ class FunctionalTestCase(unittest.TestCase):
|
|||
self.assertIn('base_method', dir(t))
|
||||
|
||||
def test_lazy_base_class_override(self):
|
||||
"""Test that lazy finds the correct (overridden) method implementation"""
|
||||
|
||||
"""lazy finds the correct (overridden) method implementation"""
|
||||
class Base(object):
|
||||
def method(self):
|
||||
return 'Base'
|
||||
|
@ -81,10 +79,8 @@ class FunctionalTestCase(unittest.TestCase):
|
|||
|
||||
def test_cached_property(self):
|
||||
"""
|
||||
Test that cached_property caches its value,
|
||||
and that it behaves like a property
|
||||
cached_property caches its value and that it behaves like a property
|
||||
"""
|
||||
|
||||
class A(object):
|
||||
|
||||
@cached_property
|
||||
|
@ -121,9 +117,8 @@ class FunctionalTestCase(unittest.TestCase):
|
|||
|
||||
def test_lazy_equality(self):
|
||||
"""
|
||||
Tests that == and != work correctly for Promises.
|
||||
== and != work correctly for Promises.
|
||||
"""
|
||||
|
||||
lazy_a = lazy(lambda: 4, int)
|
||||
lazy_b = lazy(lambda: 4, int)
|
||||
lazy_c = lazy(lambda: 5, int)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue