summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/custom_managers/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/custom_managers/tests.py b/tests/custom_managers/tests.py
index 62ee3754d0..bd18e7d8ea 100644
--- a/tests/custom_managers/tests.py
+++ b/tests/custom_managers/tests.py
@@ -95,6 +95,13 @@ class CustomManagerTests(TestCase):
self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type)
self.assertEqual(queryset._filter_CustomManager, True)
+ def test_related_manager(self):
+ """
+ The related managers extend the default manager.
+ """
+ self.assertIsInstance(self.droopy.books, PublishedBookManager)
+ self.assertIsInstance(self.b2.authors, PersonManager)
+
def test_no_objects(self):
"""
The default manager, "objects", doesn't exist, because a custom one