How to use the aria2p.utils.bool_to_str function in aria2p

To help you get started, we’ve selected a few aria2p examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pawamoy / aria2p / tests / test_utils.py View on Github external
def test_bool_to_str_true_int_gives_int():
    assert bool_to_str(1) == 1
github pawamoy / aria2p / tests / test_utils.py View on Github external
def test_bool_to_str_false_int_gives_int():
    assert bool_to_str(0) == 0
github pawamoy / aria2p / tests / test_utils.py View on Github external
def test_bool_to_str_none_gives_none():
    assert bool_to_str(None) is None
github pawamoy / aria2p / tests / test_utils.py View on Github external
def test_bool_to_str_true_gives_true():
    assert bool_to_str(True) == "true"
github pawamoy / aria2p / tests / test_utils.py View on Github external
def test_bool_to_str_false_gives_false():
    assert bool_to_str(False) == "false"