~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2006-07-28 00:17:55 UTC
  • mto: (1904.2.2 bzr.mbp.release)
  • mto: This revision was merged to the branch mainline in revision 1913.
  • Revision ID: john@arbash-meinel.com-20060728001755-43e42832fd5ffca7
Test that we copy the parent across properly (if it is available)

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        b.control_files.put('parent', cStringIO.StringIO(path))
86
86
 
87
87
        # With an invalid branch parent, just return None
88
 
        self.assertEqual(None, b.get_parent())
 
88
        self.assertRaises(bzrlib.errors.InaccessibleParent, b.get_parent)
89
89