~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: 2007-01-12 21:39:24 UTC
  • mto: (2230.3.47 branch6)
  • mto: This revision was merged to the branch mainline in revision 2290.
  • Revision ID: abentley@panoramicfeedback.com-20070112213924-t9fm7x7foi5uqa83
Add more config testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
593
593
        self.assertEqual("foo", self.get_branch().get_push_location())
594
594
 
595
595
    def test_set_push_location(self):
596
 
        from bzrlib.config import (locations_config_filename,
597
 
                                   ensure_config_dir_exists)
598
 
        ensure_config_dir_exists()
599
 
        fn = locations_config_filename()
600
596
        branch = self.get_branch()
601
597
        branch.set_push_location('foo')
602
 
        local_path = urlutils.local_path_from_url(branch.base[:-1])
603
 
        self.assertFileEqual("[%s]\n"
604
 
                             "push_location = foo\n"
605
 
                             "push_location:policy = norecurse" % local_path,
606
 
                             fn)
607
 
 
608
 
    # TODO RBC 20051029 test getting a push location from a branch in a 
609
 
    # recursive section - that is, it appends the branch name.
 
598
        self.assertEqual('foo', branch.get_push_location())
610
599
 
611
600
 
612
601
class TestFormat(TestCaseWithBranch):