Improved description of test_proxy_get_real_instance_class unit test
Camp life rule: leave things better then you found them.fix_request_path_info
parent
5499901db7
commit
b9d7e9f234
|
|
@ -721,10 +721,10 @@ class PolymorphicTests(TestCase):
|
||||||
|
|
||||||
def test_proxy_get_real_instance_class(self):
|
def test_proxy_get_real_instance_class(self):
|
||||||
"""
|
"""
|
||||||
Test that proxy models derived from PolyMorphicBase classes
|
The call to ``get_real_instance()`` also checks whether the returned model is of the correct type.
|
||||||
can call get_real_instance() and get_real_instance_class()
|
This unit test guards that this check is working properly. For instance,
|
||||||
|
proxy child models need to be handled separately.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
name="Item1"
|
name="Item1"
|
||||||
nonproxychild = NonProxyChild.objects.create(name=name)
|
nonproxychild = NonProxyChild.objects.create(name=name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue