From b9d7e9f234e9e49b53f7b2feafad299da068177a Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Tue, 29 Apr 2014 14:07:33 +0200 Subject: [PATCH] Improved description of test_proxy_get_real_instance_class unit test Camp life rule: leave things better then you found them. --- polymorphic/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymorphic/tests.py b/polymorphic/tests.py index 5032a85..47d3c90 100644 --- a/polymorphic/tests.py +++ b/polymorphic/tests.py @@ -721,10 +721,10 @@ class PolymorphicTests(TestCase): def test_proxy_get_real_instance_class(self): """ - Test that proxy models derived from PolyMorphicBase classes - can call get_real_instance() and get_real_instance_class() + The call to ``get_real_instance()`` also checks whether the returned model is of the correct type. + This unit test guards that this check is working properly. For instance, + proxy child models need to be handled separately. """ - name="Item1" nonproxychild = NonProxyChild.objects.create(name=name)