From 079ee1ff5d3ae7afee34eb9a79007f283f1471ab Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 11 Dec 2014 18:01:34 -0500 Subject: [PATCH] Readded test inadvertently removed in last commit. --- tests/custom_managers/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) 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