#NEWLINE# def testTooManyColonsInSpec( self ) : #NEWLINE# #INDENT# contents = StringIO ( '\n' . join ( [ '[section]' , 'massagers = :::foo=ploy.config.IntegerMassager' , 'value = 1' ] ) ) #NEWLINE# with patch ( 'ploy.config.log' ) as LogMock : #NEWLINE# #INDENT# with pytest . raises ( SystemExit ) : #NEWLINE# #INDENT# Config ( contents ) . parse ( ) #NEWLINE# #UNINDENT# #UNINDENT# assert ( contents . error . call_args_list == [ ( ( "Invalid massager spec '%s' in section '%s:%s'." , ':::foo=ploy.config.IntegerMassager' , 'global' , 'section' ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ] )