MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / test_list_methods

Function test_list_methods

tests/test_signatures.py:130–133  ·  view source on GitHub ↗
(fun, argument)

Source from the content-addressed store, hash-verified

128
129@pytest.mark.parametrize("fun, argument", [("append", "object"), ("count", "value")])
130def 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 --------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

setup_stateFunction · 0.90

Tested by

no test coverage detected