~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Vincent Ladeuil
  • Date: 2011-02-16 23:58:03 UTC
  • mto: This revision was merged to the branch mainline in revision 5684.
  • Revision ID: v.ladeuil+lp@free.fr-20110216235803-rvxyf3w5viyz2fw8
Detect unknown references during interpolation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        c = self.get_config('foo=xxx')
368
368
        self.assertInterpolate('xxx', c, '{foo}')
369
369
 
 
370
    def test_unknown_ref(self):
 
371
        c = self.get_config('')
 
372
        self.assertRaises(errors.InterpolationUnknownOption,
 
373
                          c.interpolate, '{foo}')
 
374
 
370
375
    def test_indirect_ref(self):
371
376
        c = self.get_config('''
372
377
foo=xxx