~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Martin Pool
  • Date: 2008-07-28 08:43:03 UTC
  • mto: This revision was merged to the branch mainline in revision 3588.
  • Revision ID: mbp@sourcefrog.net-20080728084303-rjroyiv5oe2jto26
Default InterRepository.fetch raises IncompatibleRepositories

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
        knit3_tree = self.make_branch_and_tree('knit3',
171
171
            format='dirstate-with-subtree')
172
172
        knit3_tree.commit('blah')
173
 
        self.assertRaises(errors.IncompatibleRepositories,
174
 
                          knit_tree.branch.fetch, knit3_tree.branch)
 
173
        e = self.assertRaises(errors.IncompatibleRepositories,
 
174
                              knit_tree.branch.fetch, knit3_tree.branch)
 
175
        self.assertContainsRe(str(e),
 
176
            r"(?m).*/knit.*\nis not compatible with\n.*/knit3/.*\n"
 
177
            r"different rich-root support")
175
178
 
176
179
 
177
180
class TestMergeFetch(TestCaseWithTransport):