def parse_bool(text):
    if text.lower() in ('true', '1'):
        return True
    elif text.lower() in ('false', '0'):
        return False
    raise Exception('Invalid boolean: %s' % text)
We need to setup a realistic set of objects to test the related engine
dataset/ETHPy150Open kivy/kivy/kivy/parser.py/parse_bool--crossover with--dataset/ETHPy150Open mozilla/inventory/core/range/tests/ip_chooser_tests.py/ChooserTests.setUp