~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Aaron Bentley
  • Date: 2012-02-15 22:43:50 UTC
  • mto: (6437.23.10 2.5)
  • mto: This revision was merged to the branch mainline in revision 6469.
  • Revision ID: aaron@aaronbentley.com-20120215224350-d1rpvmhti0wgk0aj
Use colocated branch names as nicknames.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1196
1196
        b = self.make_branch('!repo')
1197
1197
        self.assertEqual('!repo', b.get_config().get_nickname())
1198
1198
 
 
1199
    def test_autonick_uses_branch_name(self):
 
1200
        b = self.make_branch('foo', name='bar')
 
1201
        self.assertEqual('bar', b.get_config().get_nickname())
 
1202
 
1199
1203
    def test_warn_if_masked(self):
1200
1204
        warnings = []
1201
1205
        def warning(*args):