예제 #1
0
def test_all_callback_None(data):
    ctx = MockContext()
    assert all_handler(ctx, None, None) is None
예제 #2
0
def test_all_callback(data):
    ctx = MockContext()
    ctx.obj['like'] = {'transform': 'foo'}
    assert all_handler(ctx, None, True) == {'transform': 'foo'}
예제 #3
0
def test_all_callback_None(data):
    ctx = MockContext()
    assert all_handler(ctx, None, None) is None
예제 #4
0
def test_all_callback_pass():
    ctx = MockContext()
    ctx.obj['like'] = {'transform': 'foo'}
    assert all_handler(ctx, None, None) is None
예제 #5
0
def test_all_callback(data):
    ctx = MockContext()
    ctx.obj['like'] = {'transform': 'foo'}
    assert all_handler(ctx, None, True) == {'transform': 'foo'}