예제 #1
0
파일: test_core.py 프로젝트: kostyll/spy
def collect(v, context):
    return spy.collect(context)
예제 #2
0
파일: test_core.py 프로젝트: kostyll/spy
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)
예제 #3
0
파일: test_core.py 프로젝트: edk0/spy
def collect(v, context):
    return spy.collect(context)
예제 #4
0
파일: test_core.py 프로젝트: edk0/spy
 def collect_nothing_then_something(v, context):
     return [*islice(spy.collect(context), 0), *spy.collect(context)]
예제 #5
0
파일: test_core.py 프로젝트: edk0/spy
 def collect_twice(v, context):
     return [*islice(spy.collect(context), 2), *spy.collect(context)]
예제 #6
0
파일: test_core.py 프로젝트: edk0/spy
def test_collect_nocontext():
    with pytest.raises(ValueError):
        spy.collect(None)