mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Renamed django.utils.inspect.func_has_no_args() to method_has_no_args().
This commit is contained in:
parent
155b31d4ec
commit
756b859576
3 changed files with 10 additions and 5 deletions
|
@ -33,3 +33,7 @@ class TestInspectMethods(unittest.TestCase):
|
|||
|
||||
def test_func_accepts_var_args_no_var_args(self):
|
||||
self.assertIs(inspect.func_accepts_var_args(Person.one_argument), False)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue