Test getfuncargnames for normal methods
()
| 39 | |
| 40 | |
| 41 | def test_getfuncargnames_methods(): |
| 42 | """Test getfuncargnames for normal methods""" |
| 43 | |
| 44 | class A: |
| 45 | def f(self, arg1, arg2="hello"): |
| 46 | raise NotImplementedError() |
| 47 | |
| 48 | assert getfuncargnames(A().f) == ("arg1",) |
| 49 | |
| 50 | |
| 51 | def test_getfuncargnames_staticmethod(): |
nothing calls this directly
no test coverage detected