예제 #1
0
def test_config_type_float():
    assert config_type('1.75') == 1.75
예제 #2
0
def test_config_type():
    x = [True, None, 'abc', 1, 1.5]
    assert config_type(", ".join(map(str, x))) == x
예제 #3
0
def test_config_type_int():
    assert config_type('1') == 1
예제 #4
0
def test_config_type_bool():
    assert config_type('True')