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