(fun, argument)
| 128 | |
| 129 | @pytest.mark.parametrize("fun, argument", [("append", "object"), ("count", "value")]) |
| 130 | def test_list_methods(fun, argument): |
| 131 | code = "x.%s(2)" % fun |
| 132 | s = setup_state(code, code, "x = [1, 2, 3]") |
| 133 | s.check_function("x.%s" % fun).check_args(argument).has_equal_value() |
| 134 | |
| 135 | |
| 136 | # One-offs -------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected