

def test_default(self):
    tmpl = env.from_string("{{ missing|default('no') }}|{{ false|default('no') }}|{{ false|default('no', true) }}|{{ given|default('no') }}")
    assert (tmpl.render(given='yes') == 'no|False|no|yes')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_default/original