()
| 946 | |
| 947 | |
| 948 | def test_unbind_method(): |
| 949 | class X(list): |
| 950 | def index(self, k): |
| 951 | return "CUSTOM" |
| 952 | |
| 953 | x = X() |
| 954 | assert _unbind_method(x.index) is X.index |
| 955 | assert _unbind_method([].index) is list.index |
| 956 | assert _unbind_method(list.index) is None |
| 957 | |
| 958 | |
| 959 | def test_assumption_instance_attr_do_not_matter(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…