Rev 6110: Add a test to better expose the feature in file:///home/vila/src/bzr/bugs/843211-basename-option/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Nov 17 17:11:18 UTC 2011
At file:///home/vila/src/bzr/bugs/843211-basename-option/
------------------------------------------------------------
revno: 6110
revision-id: v.ladeuil+lp at free.fr-20111117171117-f7qp6xob00yayx1q
parent: v.ladeuil+lp at free.fr-20111114163925-lwgidil3p6m6616i
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 843211-basename-option
timestamp: Thu 2011-11-17 18:11:17 +0100
message:
Add a test to better expose the feature
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-11-14 16:36:31 +0000
+++ b/bzrlib/tests/test_config.py 2011-11-17 17:11:17 +0000
@@ -3682,6 +3682,16 @@
stack = config.LocationStack('/home/user/project/branch')
self.assertEquals('branch', stack.get('bfoo', expand=True))
+ def test_expand_basename_locally_longer_path(self):
+ l_store = config.LocationStore()
+ l_store._load_from_string('''
+[/home/user]
+bfoo = {basename}
+''')
+ l_store.save()
+ stack = config.LocationStack('/home/user/project/dir/branch')
+ self.assertEquals('branch', stack.get('bfoo', expand=True))
+
def test_expand_relpath_locally(self):
l_store = config.LocationStore()
l_store._load_from_string('''
More information about the bazaar-commits
mailing list