~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2010-08-31 08:25:15 UTC
  • mfrom: (5247.7.1 catch-them-all)
  • mto: This revision was merged to the branch mainline in revision 5400.
  • Revision ID: v.ladeuil+lp@free.fr-20100831082515-an9mtdmhalo7xaq0
Merge catch-them-all into more-ignored-exceptions

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):