#NEWLINE# @ pytest . mark . parametrize ( 'value, expected' , [ ( True , True ) , ( False , False ) , ( 'true' , True ) , ( 'yes' , True ) , ( 'on' , True ) , ( 'false' , False ) , ( 'no' , False ) , ( 'off' , False ) , ( 'foo' , None ) ] ) #NEWLINE# def test_value_asbool( value , expected ) : #NEWLINE# #INDENT# from ploy.config import value_asbool #NEWLINE# assert ( value_asbool ( value ) == value )