#NEWLINE# def test_with_wrong_configuration( self ) : #NEWLINE# #INDENT# self . default_config [ 'mail_server_helo' ] = 'lalala' #NEWLINE# cfg_manager = ConfigurationManagerFake ( self . default_config ) #NEWLINE# self . smtp_mock = self . mocker . mock ( ) #NEWLINE# self . smtp_mock . starttls ( ) #NEWLINE# self . smtp_mock . helo ( 'lalala' ) #NEWLINE# self . smtp_mock . close ( ) #NEWLINE# notifier = AdminNotifierFake ( cfg_manager , 'rigel.deusto.es' , result . smtp_mock ) #NEWLINE# self . mocker . replay ( ) #NEWLINE# result = notifier . notify ( 'message' ) #NEWLINE# self . assertEquals ( ( - 2 ) , result )