~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_rspush.py

  • Committer: Aaron Bentley
  • Date: 2008-10-07 15:19:22 UTC
  • Revision ID: aaron@aaronbentley.com-20081007151922-qjnns8yonx8daeua
Fix NotStandalone (#277652)

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