~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Vincent Ladeuil
  • Date: 2008-05-09 13:57:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3421.
  • Revision ID: v.ladeuil+lp@free.fr-20080509135753-u6wb65wyiodxlfga
Reproduce bug 199440.

* bzrlib/tests/test_config.py:
(TestAuthenticationConfigFile.test_credentials_for_user_without_password):
Reproduce bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1330
1330
        self._got_user_passwd(None, None,
1331
1331
                              conf, 'http', 'bar.org', user='georges')
1332
1332
 
 
1333
    def test_credentials_for_user_without_password(self):
 
1334
        conf = config.AuthenticationConfig(_file=StringIO(
 
1335
                """
 
1336
[without password]
 
1337
scheme=http
 
1338
host=bar.org
 
1339
user=jim
 
1340
"""))
 
1341
        # Get user but no password
 
1342
        self._got_user_passwd('jim', None,
 
1343
                              conf, 'http', 'bar.org')
 
1344
 
1333
1345
    def test_verify_certificates(self):
1334
1346
        conf = config.AuthenticationConfig(_file=StringIO(
1335
1347
                """