Readded test inadvertently removed in last commit.

This commit is contained in:
Tim Graham 2014-12-11 18:01:34 -05:00
parent 6db122c7ab
commit 079ee1ff5d
1 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,13 @@ class CustomManagerTests(TestCase):
self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type) self.assertQuerysetEqual(queryset, ["Bugs Bunny"], six.text_type)
self.assertEqual(queryset._filter_CustomManager, True) 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): def test_no_objects(self):
""" """
The default manager, "objects", doesn't exist, because a custom one The default manager, "objects", doesn't exist, because a custom one