def collect(v, context): return spy.collect(context)
def test_collect_nocontext(): with pytest.raises(ValueError): spy.collect(None)
def collect_nothing_then_something(v, context): return [*islice(spy.collect(context), 0), *spy.collect(context)]
def collect_twice(v, context): return [*islice(spy.collect(context), 2), *spy.collect(context)]