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