/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: Vincent Ladeuil
  • Date: 2011-11-17 17:11:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6278.
  • Revision ID: v.ladeuil+lp@free.fr-20111117171117-f7qp6xob00yayx1q
Add a test to better expose the feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
3682
3682
        stack = config.LocationStack('/home/user/project/branch')
3683
3683
        self.assertEquals('branch', stack.get('bfoo', expand=True))
3684
3684
 
 
3685
    def test_expand_basename_locally_longer_path(self):
 
3686
        l_store = config.LocationStore()
 
3687
        l_store._load_from_string('''
 
3688
[/home/user]
 
3689
bfoo = {basename}
 
3690
''')
 
3691
        l_store.save()
 
3692
        stack = config.LocationStack('/home/user/project/dir/branch')
 
3693
        self.assertEquals('branch', stack.get('bfoo', expand=True))
 
3694
 
3685
3695
    def test_expand_relpath_locally(self):
3686
3696
        l_store = config.LocationStore()
3687
3697
        l_store._load_from_string('''