~abentley/bzr/appenddir

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Aaron Bentley
  • Date: 2011-02-16 22:02:38 UTC
  • Revision ID: aaron@aaronbentley.com-20110216220238-ptrm40clbin86v0c
Support appenddir configuration policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    errors,
34
34
    osutils,
35
35
    mail_client,
36
 
    mergetools,
37
36
    ui,
38
37
    urlutils,
39
38
    tests,
1216
1215
        self.assertEqual('normal',
1217
1216
                         self.my_config.get_user_option('appendpath_option'))
1218
1217
 
 
1218
    def test_get_user_option_appenddir(self):
 
1219
        foo_config = config.LocationConfig('/foo')
 
1220
        foo_config.set_user_option('bar', 'baz',
 
1221
                                   config.STORE_LOCATION_APPENDDIR)
 
1222
        qux_config = config.LocationConfig('/foo/bar/qux')
 
1223
        self.assertEqual('baz/qux', qux_config.get_user_option('bar'))
 
1224
 
1219
1225
    def test_get_user_option_norecurse(self):
1220
1226
        self.get_branch_config('http://www.example.com')
1221
1227
        self.assertEqual('norecurse',