#NEWLINE# def test_type_safety( self ) : #NEWLINE# #INDENT# assert_raises ( ValueError , Config , key = 'test_type' , type = 42 ) #NEWLINE# assert_raises ( ValueError , Config , key = 'test_type' , type = str , default = 42 ) #NEWLINE# assert_raises ( ValueError , Config , key = 'test_type' , default = False ) #NEWLINE# bool_conf = Config ( 'bool_conf' , type = bool ) #NEWLINE# assert_true ( ( bool_conf . type == coerce_bool ) )