mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #33733 -- Added tests for attributes of manager methods.
This commit is contained in:
parent
93cedc82f2
commit
0982cf2a01
1 changed files with 4 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue