def METHOD_NAME(self):
    settings = EmailSettings()
    settings.host = self.helper.real_host
    settings.port = self.helper.real_port
    settings.to_addr = self.helper.real_to_addr
    settings.login = self.helper.real_login
    settings.password = self.helper.real_password
    settings.connection_security = self.helper.real_connection_security
    self.notifier.update_settings(settings)
    server = Mock()
    self.notifier._create_server = Mock(return_value=server)
    self.notifier._server_authenticate = Mock(return_value=server)
    server.sendmail = Mock()
    server.quit = Mock()
    response = self.notifier.notify('hello', 'yay')
    server.sendmail.assert_called_once_with(self.helper.real_login, self.helper.real_to_addr, ANY)
    self.assertTrue(response)
    server.quit.assert_called_once_with()