Refs #33733 -- Added tests for attributes of manager methods.
This commit is contained in:
parent
93cedc82f2
commit
0982cf2a01
|
@ -736,6 +736,10 @@ class ManagerTest(SimpleTestCase):
|
||||||
sorted(self.QUERYSET_PROXY_METHODS),
|
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):
|
class SelectOnSaveTests(TestCase):
|
||||||
def test_select_on_save(self):
|
def test_select_on_save(self):
|
||||||
|
|
Loading…
Reference in New Issue