~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-30 07:36:41 UTC
  • mfrom: (5394.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100830073641-a8gnwgcuonlkdqqg
(vila) Config files in bazaar home now use a lock (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from bzrlib import (
20
20
    branch as _mod_branch,
21
21
    bzrdir,
 
22
    config,
22
23
    delta as _mod_delta,
23
24
    errors,
24
25
    gpg,
617
618
        self.assertEqual(None, self.get_branch().get_push_location())
618
619
 
619
620
    def test_get_push_location_exact(self):
620
 
        from bzrlib.config import (locations_config_filename,
621
 
                                   ensure_config_dir_exists)
622
 
        ensure_config_dir_exists()
623
 
        fn = locations_config_filename()
624
 
        open(fn, 'wt').write(("[%s]\n"
625
 
                                  "push_location=foo\n" %
626
 
                                  self.get_branch().base[:-1]))
 
621
        b = self.get_branch()
 
622
        config.LocationConfig.from_string(
 
623
            '[%s]\npush_location=foo\n' % (b.base,), b.base, save=True)
627
624
        self.assertEqual("foo", self.get_branch().get_push_location())
628
625
 
629
626
    def test_set_push_location(self):