Skip to content

Commit 079ee1f

Browse files
committed
Readded test inadvertently removed in last commit.
1 parent 6db122c commit 079ee1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/custom_managers/tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ def test_queryset_and_manager(self):
9595
self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type)
9696
self.assertEqual(queryset._filter_CustomManager, True)
9797

98+
def test_related_manager(self):
99+
"""
100+
The related managers extend the default manager.
101+
"""
102+
self.assertIsInstance(self.droopy.books, PublishedBookManager)
103+
self.assertIsInstance(self.b2.authors, PersonManager)
104+
98105
def test_no_objects(self):
99106
"""
100107
The default manager, "objects", doesn't exist, because a custom one

0 commit comments

Comments
 (0)