Readded test inadvertently removed in last commit.
This commit is contained in:
parent
6db122c7ab
commit
079ee1ff5d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue