~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2006-06-16 15:59:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1787.
  • Revision ID: abentley@panoramicfeedback.com-20060616155924-893f31f8078a90df
Rename branches.conf to locations.conf

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
        self.assertEqual(None, self.get_branch().get_push_location())
491
491
 
492
492
    def test_get_push_location_exact(self):
493
 
        from bzrlib.config import (branches_config_filename,
 
493
        from bzrlib.config import (locations_config_filename,
494
494
                                   ensure_config_dir_exists)
495
495
        ensure_config_dir_exists()
496
 
        fn = branches_config_filename()
 
496
        fn = locations_config_filename()
497
497
        print >> open(fn, 'wt'), ("[%s]\n"
498
498
                                  "push_location=foo" %
499
499
                                  self.get_branch().base[:-1])
500
500
        self.assertEqual("foo", self.get_branch().get_push_location())
501
501
 
502
502
    def test_set_push_location(self):
503
 
        from bzrlib.config import (branches_config_filename,
 
503
        from bzrlib.config import (locations_config_filename,
504
504
                                   ensure_config_dir_exists)
505
505
        ensure_config_dir_exists()
506
 
        fn = branches_config_filename()
 
506
        fn = locations_config_filename()
507
507
        self.get_branch().set_push_location('foo')
508
508
        self.assertFileEqual("[%s]\n"
509
509
                             "push_location = foo" % self.get_branch().base[:-1],