/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Aaron Bentley
  • Date: 2008-10-16 18:30:32 UTC
  • mto: (3777.1.13 launchpad-login)
  • mto: This revision was merged to the branch mainline in revision 3783.
  • Revision ID: aaron@aaronbentley.com-20081016183032-cybgqp6y0ip27mem
Reverse order of scheme and password

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
2
2
#   Authors: Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
1416
1416
 
1417
1417
    def test_set_credentials(self):
1418
1418
        conf = config.AuthenticationConfig()
1419
 
        conf.set_credentials('name', 'host', 'user', 'password', 'scheme',
 
1419
        conf.set_credentials('name', 'host', 'user', 'scheme', 'password',
1420
1420
        99, path='/foo', verify_certificates=False)
1421
1421
        credentials = conf.get_credentials(host='host', scheme='scheme',
1422
1422
                                           port=99, path='/foo')
1429
1429
 
1430
1430
    def test_reset_credentials_different_name(self):
1431
1431
        conf = config.AuthenticationConfig()
1432
 
        conf.set_credentials('name', 'host', 'user', 'password', 'scheme'),
1433
 
        conf.set_credentials('name2', 'host', 'user2', 'password', 'scheme'),
 
1432
        conf.set_credentials('name', 'host', 'user', 'scheme', 'password'),
 
1433
        conf.set_credentials('name2', 'host', 'user2', 'scheme', 'password'),
1434
1434
        self.assertIs(None, conf._get_config().get('name'))
1435
1435
        credentials = conf.get_credentials(host='host', scheme='scheme')
1436
1436
        CREDENTIALS = {'name': 'name2', 'user': 'user2', 'password':