def test_set(): l = {1, 2, 3} proxy = Proxy() proxy.add("foo") new_l = produce(proxy, l) assert new_l == {1, 2, 3, "foo"} assert l == {1, 2, 3}
def test_set(): l = {1, 2, 3} proxy = Proxy() proxy.add('foo') new_l = produce(proxy, l) assert new_l == {1, 2, 3, 'foo'} assert l == {1, 2, 3}