1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

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):