~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_rspush.py

  • Committer: Jelmer Vernooij
  • Date: 2010-12-18 00:16:41 UTC
  • mto: This revision was merged to the branch mainline in revision 767.
  • Revision ID: jelmer@samba.org-20101218001641-1ex046f0brdoeip5
Add DiffWriter.writelines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        checkout = branch.create_checkout('checkout', lightweight=True)
73
73
        checkout.commit('some changes')
74
74
        mock_rsync = MockRSync()
75
 
        self.assertRaises(NotStandalone, rspush, checkout, 'example.org:foo',
76
 
                          _rsync=mock_rsync)
 
75
        e = self.assertRaises(NotStandalone, rspush, checkout,
 
76
                              'example.org:foo', _rsync=mock_rsync)
 
77
        self.assertContainsRe(str(e), '/checkout/ is not a standalone tree.$')
77
78
 
78
79
    def test_refuse_checkout(self):
79
80
        branch = self.make_branch('tree')