Completed
Push — master ( a208b6...2c60dc )
by Kolen
01:08
created

test_to_bool()   B

Complexity

Conditions 6

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
cc 6
c 4
b 0
f 0
dl 0
loc 7
rs 8
1
#!/usr/bin/env python3
2
"""
3
4
"""
5
from .context import to_bool
6
7
8
def test_to_bool():
9
    assert to_bool("true")
10
    assert to_bool("false") is False
11
    assert to_bool("yes")
12
    assert to_bool("no") is False
13
    assert to_bool("NO") is False
14
    return
15