summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-01 10:05:58 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-01 10:44:34 +0200
commit0982cf2a013be291356758a5577ecb3c9f047ba0 (patch)
tree47c29ea8aa520ec657ce13a05bd505918dc7febe /tests/basic
parent93cedc82f29076c824d476354527af1150888e4f (diff)
downloaddjango-0982cf2a013be291356758a5577ecb3c9f047ba0.tar.gz
Refs #33733 -- Added tests for attributes of manager methods.
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py
index e27fb66e3d..601dda762b 100644
--- a/tests/basic/tests.py
+++ b/tests/basic/tests.py
@@ -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):