import os

from catmux.session import check_boolean_field

def test_boolean_field():
    assert check_boolean_field("yes") == True
    assert check_boolean_field("Yes") == True
    assert check_boolean_field("YES") == True
    assert check_boolean_field("true") == True
    assert check_boolean_field("True") == True
    assert check_boolean_field("TRUE") == True
    assert check_boolean_field("t") == True
    assert check_boolean_field("T") == True
    assert check_boolean_field("1") == True
    assert check_boolean_field("no") == False
    assert check_boolean_field("No") == False
    assert check_boolean_field("NO") == False
    assert check_boolean_field("false") == False
    assert check_boolean_field("False") == False
    assert check_boolean_field("FALSE") == False
    assert check_boolean_field(True) == True
    assert check_boolean_field(False) == False
