diff --git a/tests/utils_tests/test_inspect.py b/tests/utils_tests/test_inspect.py index 3967f2c886..013a09a25d 100644 --- a/tests/utils_tests/test_inspect.py +++ b/tests/utils_tests/test_inspect.py @@ -39,3 +39,11 @@ class TestInspectMethods(unittest.TestCase): 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) + + def test_func_supports_parameter(self): + self.assertIs(inspect.func_supports_parameter(Person.all_kinds, 'address'), True) + self.assertIs(inspect.func_supports_parameter(Person.all_kinds, 'zone'), False) + + def test_func_accepts_kwargs(self): + self.assertIs(inspect.func_accepts_kwargs(Person.just_args), False) + self.assertIs(inspect.func_accepts_kwargs(Person.all_kinds), True)