~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Wouter van Heyst
  • Date: 2006-06-06 22:37:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: larstiq@larstiq.dyndns.org-20060606223730-a308c5429fc6c617
change branch.{get,set}_parent to store a relative path but return full urls

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        self.assertEquals(b.get_parent(), local_path_to_url('../other_branch'))
52
52
        path = local_path_to_url('../yanb')
53
53
        b.set_parent(path)
 
54
        self.assertEqual(b.control_files.get('parent').read().strip('\n'), 
 
55
            '../yanb')
54
56
        self.assertEqual(b.get_parent(), path)
55
 
        self.assertEqual(b.control_files.get('parent').read().strip('\n'), 
56
 
            '../yanb')
57
57
 
58
58
 
59
59
        self.assertRaises(bzrlib.errors.InvalidURL, b.set_parent, u'\xb5')