Example #1
0
def test_get_partial_methods(compile_testing_templates):
    import testing.templates.src
    ret = get_partial_methods((testing.templates.src,))
    assert ret == {
        'testing.templates.src.partial_template_no_arguments': set(['render']),
        'testing.templates.src.partial_with_same_name':
            set(['partial_with_same_name']),
        'testing.templates.src.partial_template': set(['render']),
    }
Example #2
0
def test_get_partial_methods():
    from testing.templates import src
    ret = get_partial_methods((src, ))
    assert ret == {
        'testing.templates.src.optimize_name': {'foo', 'bar'},
        'testing.templates.src.partial_template_no_arguments': {'render'},
        'testing.templates.src.partial_with_same_name':
        {'partial_with_same_name'},
        'testing.templates.src.partial_template': {'render'},
        'testing.templates.src.context_partial_template': {'render'},
    }
def test_get_partial_methods():
    from testing.templates import src
    ret = get_partial_methods((src,))
    assert ret == {
        'testing.templates.src.optimize_name': {'foo', 'bar'},
        'testing.templates.src.partial_template_no_arguments': {'render'},
        'testing.templates.src.partial_with_same_name':
            {'partial_with_same_name'},
        'testing.templates.src.partial_template': {'render'},
        'testing.templates.src.context_partial_template': {'render'},
    }