Exemplo n.º 1
0
def collect(v, context):
    return spy.collect(context)
Exemplo n.º 2
0
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)
Exemplo n.º 3
0
def collect(v, context):
    return spy.collect(context)
Exemplo n.º 4
0
 def collect_nothing_then_something(v, context):
     return [*islice(spy.collect(context), 0), *spy.collect(context)]
Exemplo n.º 5
0
 def collect_twice(v, context):
     return [*islice(spy.collect(context), 2), *spy.collect(context)]
Exemplo n.º 6
0
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)