mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #29244 -- Fixed django.utils.inspect.method_has_no_args() for bound methods.
This commit is contained in:
committed by
Tim Graham
parent
756b859576
commit
f1bf069ec1
@@ -37,3 +37,5 @@ class TestInspectMethods(unittest.TestCase):
|
||||
def test_method_has_no_args(self):
|
||||
self.assertIs(inspect.method_has_no_args(Person.no_arguments), True)
|
||||
self.assertIs(inspect.method_has_no_args(Person.one_argument), False)
|
||||
self.assertIs(inspect.method_has_no_args(Person().no_arguments), True)
|
||||
self.assertIs(inspect.method_has_no_args(Person().one_argument), False)
|
||||
|
||||
Reference in New Issue
Block a user