mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Readded test inadvertently removed in last commit.
This commit is contained in:
parent
6db122c7ab
commit
079ee1ff5d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue