Refs #33733 -- Added tests for attributes of manager methods.

This commit is contained in:
Mariusz Felisiak 2022-06-01 10:05:58 +02:00
parent 93cedc82f2
commit 0982cf2a01
1 changed files with 4 additions and 0 deletions

View File

@ -736,6 +736,10 @@ class ManagerTest(SimpleTestCase):
sorted(self.QUERYSET_PROXY_METHODS),
)
def test_manager_method_attributes(self):
self.assertEqual(Article.objects.get.__doc__, models.QuerySet.get.__doc__)
self.assertEqual(Article.objects.count.__name__, models.QuerySet.count.__name__)
class SelectOnSaveTests(TestCase):
def test_select_on_save(self):