~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 2900.2.11.

  • Committer: Vincent Ladeuil
  • Date: 2007-10-18 20:54:18 UTC
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071018205418-mj1g30cn3n4u1ge1
Make smtp aware of authentication config.

* bzrlib/smtp_connection.py:
(SMTPConnection._authenticate): Try the authentication config
before prompting the user.

* bzrlib/tests/test_smtp_connection.py:
Fix some imports.
(everybody_is_welcome): Fake auth smtp server.
(TestSMTPConnection): Now inherits from tests.TestCaseInTempDir so
that we can create an authentication.conf in a protected env.
(TestSMTPConnection.test_smtp_password_from_auth_config): New test.
(TestSMTPConnectionWithUI): New test for prompting user.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: