~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_rspush.py

  • Committer: Aaron Bentley
  • Date: 2009-03-11 02:13:43 UTC
  • Revision ID: aaron@aaronbentley.com-20090311021343-gq6i3v5gmkucye7u
Remove clean-tree (now in bzr core)

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')