summaryrefslogtreecommitdiff
path: root/tests/test_converters.py
blob: 5361310171259f9a26bfcfa5b6ec9ef141e6ac19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def test_asbool_truthy():
    from paste.deploy.converters import asbool
    assert asbool('true')
    assert asbool('yes')
    assert asbool('on')
    assert asbool('y')
    assert asbool('t')
    assert asbool('1')

def test_asbool_falsy():
    from paste.deploy.converters import asbool
    assert not asbool('false')
    assert not asbool('no')
    assert not asbool('off')
    assert not asbool('n')
    assert not asbool('f')
    assert not asbool('0')